Skip to content

Commit 05832f6

Browse files
Merge pull request #7266 from nextcloud/redirect-if-RewriteBase-enabled
fix: redirect to cleaner URL if RewriteBase is enabled
2 parents 4abf895 + c9bacab commit 05832f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/App.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ export default {
107107
this.$store.dispatch('loadSharees')
108108
},
109109
mounted() {
110+
// Redirect to cleaner URL (without /index.php) if RewriteBase is enabled
111+
if (this.$route.path.startsWith('/index.php')) {
112+
window.location.href = this.$route.fullPath.replace('/index.php', '')
113+
}
110114
// Set navigation to initial state and update in case it gets toggled
111115
emit('toggle-navigation', { open: !this.isMobile && this.navShown, _initial: true })
112116
this.$nextTick(() => {

0 commit comments

Comments
 (0)