mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 05:07:42 -05:00
FIX: Back button in chrome on static pages
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user