FIX: Back button in chrome on static pages

This commit is contained in:
Robin Ward 2014-02-10 17:07:39 -05:00
parent b61df08d1b
commit 14449f236a
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ Discourse.StaticController = Discourse.Controller.extend({
text = text.match(/<!-- preload-content: -->((?:.|[\n\r])*)<!-- :preload-content -->/)[1];
this.set('content', text);
} else {
return Discourse.ajax(path, {dataType: 'html'}).then(function (result) {
return Discourse.ajax(path + ".html", {dataType: 'html'}).then(function (result) {
self.set('content', result);
});
}