use HTML 5 history mode for vue frontend

This commit is contained in:
vabene1111
2024-09-25 16:45:11 +02:00
parent 0db439c80d
commit 0a3611b94a
2 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import {createApp} from "vue";
import {createRouter, createWebHashHistory} from 'vue-router'
import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
import {createPinia} from 'pinia'
// @ts-ignore
import App from './Tandoor.vue'
@@ -56,7 +56,7 @@ const routes = [
const router = createRouter({
// TODO configure proper history mode
history: createWebHashHistory(),
history: createWebHistory('v3/'),
routes,
})