After reviewing the issue, it seems the main problem isn't in mail URL redirection -trying more than one path(app-included and invalid paths)- , navigation routing pattern was missing RouterView or router-view to be included in src/App.view:
src/router/rotues.js
import { createRouter, createWebHistory } from 'vue-router';
import home from '../components/Home/home.vue';
const routes = [
{ path: '/home', name: 'home', component:home},
{ path: '/path', name: 'name', component:component}
];
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes
});
........................
export default router;
src/main.js
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/Routes'
createApp(App).use(router).mount('#app');
...............................
src/App..vue
<template>
<overallApplicationComponent></overallApplicationComponent>
<RouterView>
<component :is="componentswitch()"></component>
</RouterView>
<overallApplicationComponent></overallApplicationComponent>
.......................
</template>
<script setup>
import router from './router/Routes';
import home from './components/Home/home.vue';
function componentswitch(){
if(router.currentRoute.value.path ==='/home') {
return home;
}else{
return router.currentRoute.value.component;
}
}
........................
</script>
*vue Compositon API is the pattern followed