mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
parent
a6aa28566c
commit
985b87da6c
|
@ -86,6 +86,10 @@ export default class History {
|
|||
* @public
|
||||
*/
|
||||
back() {
|
||||
if (! this.canGoBack()) {
|
||||
return this.home();
|
||||
}
|
||||
|
||||
this.stack.pop();
|
||||
|
||||
m.route(this.getCurrent().url);
|
||||
|
|
Loading…
Reference in New Issue
Block a user