FIX: site customization preview links when deployed in a subfolder

This commit is contained in:
Neil Lalonde
2015-07-24 11:19:53 -04:00
parent b2fcc17ca2
commit c78dbb7fa5
3 changed files with 11 additions and 3 deletions

View File

@@ -10,6 +10,14 @@ import showModal from 'discourse/lib/show-modal';
**/
export default Ember.ArrayController.extend({
undoPreviewUrl: function() {
return Discourse.getURL("/?preview-style=");
}.property(),
defaultStyleUrl: function() {
return Discourse.getURL("/?preview-style=default");
}.property(),
actions: {
/**