1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 10:41:24 +02:00

Visit home page if no previous route exists

Fixes #1777
This commit is contained in:
David Sevilla Martín
2019-06-27 14:57:08 -04:00
parent f71db08467
commit 20dfcfc39c

View File

@@ -86,6 +86,10 @@ export default class History {
* @public
*/
back() {
if (! this.canGoBack()) {
return this.home();
}
this.stack.pop();
m.route(this.getCurrent().url);