From c9bacabd4ca195b0955d5123d00a38f2e6c11e55 Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Wed, 24 Sep 2025 19:15:49 +0200 Subject: [PATCH] fix: redirect to cleaner URL if RewriteBase is enabled Signed-off-by: Luka Trovic --- src/App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.vue b/src/App.vue index f43f6c516..1bbe8d8e2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -107,6 +107,10 @@ export default { this.$store.dispatch('loadSharees') }, mounted() { + // Redirect to cleaner URL (without /index.php) if RewriteBase is enabled + if (this.$route.path.startsWith('/index.php')) { + window.location.href = this.$route.fullPath.replace('/index.php', '') + } // Set navigation to initial state and update in case it gets toggled emit('toggle-navigation', { open: !this.isMobile && this.navShown, _initial: true }) this.$nextTick(() => {