With the vue-router (4) I have the following setup
import { createApp } from 'vue'
import App from './App.vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './methods/routes.js'
import Notifications from '@kyvg/vue3-notification';
import vueTheStorages from 'vue-the-storages';
import * as Sentry from "@sentry/vue";
import { Integrations } from "@sentry/tracing";
const router = createRouter({
history: createWebHashHistory(),
base: '/dist/localhost',
routes: routes.get_routes(),
})
const app = createApp(App);
app.use(router);
The issue comes when I have a link like
<router-link :to="{name: 'events.dashboard', params: { event_id: event.id, date_id: 'next' }} ">
{{event.title}}
</router-link>
This creates a link
<a href="#/event/2668/next">Event</a>
Which is great, but if you right click the link and select open in new tab
it goes to https://example.com/#/event/2668/next
and I need it to go to https://example.com/dashboard/#/event/2668/next
It feels like there should be a setting in createRouter, but I can't find it in the docs