Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Redirect /list to /dashboard for non-mobile users #4492

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
10 changes: 10 additions & 0 deletions src/mixins/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ export default {
onResize() {
this.windowWidth = window.innerWidth;
this.updateBody();

if (this.$router.currentRoute.value.path === "/dashboard"
|| this.$router.currentRoute.value.path === "/list") {
this.$router.push({
path: this.isMobile
? "/list"
: "/dashboard",
query: this.$router.currentRoute.value?.query,
});
}
},

/**
Expand Down