FIX: Back button in chrome on static pages
This commit is contained in:
parent
b61df08d1b
commit
14449f236a
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue