mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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];
|
text = text.match(/<!-- preload-content: -->((?:.|[\n\r])*)<!-- :preload-content -->/)[1];
|
||||||
this.set('content', text);
|
this.set('content', text);
|
||||||
} else {
|
} else {
|
||||||
return Discourse.ajax(path, {dataType: 'html'}).then(function (result) {
|
return Discourse.ajax(path + ".html", {dataType: 'html'}).then(function (result) {
|
||||||
self.set('content', result);
|
self.set('content', result);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user