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
@@ -44,7 +44,7 @@ Discourse.SiteCustomization = Discourse.Model.extend({
this.set('originals', originals);
}.on('init'),
previewUrl: function() { return "/?preview-style=" + this.get('key'); }.property('key'),
previewUrl: function() { return Discourse.getURL("/?preview-style=" + this.get('key')); }.property('key'),
disableSave: function() { return !this.get('changed') || this.get('saving'); }.property('changed'),
save: function() {