diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index d23b5b1..418aa92 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -31,13 +31,7 @@ export default defineComponent({ data() { return { showSettings: false } }, methods: { goBack () { - if (history.state.back === null) { - // The back button in the Navbar should never leave the sångbok page. (See issue #29) - // Hence if we got here directly, we will compute the path to go to instead of using history to go back. - this.$router.push(getParentPath(this.$route)) - } else { - this.$router.go(-1) - } + this.$router.push(getParentPath(this.$route)) } }, render() { @@ -48,7 +42,7 @@ export default defineComponent({ { !this.hideBackButton && } -
Sångboken
+
Sångboken
{!this.showSettings && } {this.showSettings && }