mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
use HTML 5 history mode for vue frontend
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user