We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8a883 commit f286767Copy full SHA for f286767
docs/api/mixins/Navigation.md
@@ -36,13 +36,19 @@ this.replaceWith('/users/10?showAge=true');
36
### `goBack()`
37
38
Programmatically go back to the last route and remove the most recent
39
-entry from the browser history.
+entry from the browser history. Return false if it's the first entry in the app history, true otherwise.
40
41
#### Example
42
43
```js
44
this.goBack();
45
```
46
+If you want to make sure there is an history entry
47
+```js
48
+if (!this.goBack()) {
49
+ this.transitionTo('/otherpage')
50
+}
51
+```
52
53
### `makePath(routeName, params, query)`
54
0 commit comments