- -
+
-
+ >
{{ link.title }}
-
- Über Ritzenbergen
@@ -74,16 +85,14 @@ export default {
diff --git a/src/router/index.ts b/src/router/index.ts
index 2cbc508..0ef0503 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -9,7 +9,8 @@ const routes = [
{ path: '/bild/:ev/:jahr', component: () => import('../views/Bildvorschau.vue') },
{ path: '/bild/:ev/:jahr/:bild', component: () => import('../views/Bildschau.vue') },
{ path: '/umgebung', component: () => import('../views/Main.vue') },
- { path: '/footer', component: () => import("../views/Main.vue")}
+ { path: '/footer', component: () => import("../views/Main.vue")},
+ { path: '/willkommen', component: () => import("../views/Main.vue")}
]
export default createRouter({
diff --git a/src/views/Galerie.vue b/src/views/Galerie.vue
index 8049821..75b6373 100644
--- a/src/views/Galerie.vue
+++ b/src/views/Galerie.vue
@@ -98,13 +98,19 @@ export default {
if(this.$route.params.ev){
let ev = this.$route.params.ev;
- console.log(this.$refs[ev][0].scrollIntoView());
+ this.$refs[ev][0].scrollIntoView();
+ this.$router.push("/galerie");
}
}
};
-
+
diff --git a/src/views/Main.vue b/src/views/Main.vue
index 1a9eb1b..1be5433 100644
--- a/src/views/Main.vue
+++ b/src/views/Main.vue
@@ -30,18 +30,21 @@ export default {
RitzenbergenLib,
};
},
+ mounted(){
+ if(this.$route.path !== "/"){
+ let hash = this.$route.path.replace("/","");
+ console.log(this.$refs[hash])
+ if(this.$refs[hash].$el) this.$refs[hash].$el.scrollIntoView();
+ this.$router.push("/");
+ }
+ }
};
-
+
@@ -83,15 +86,15 @@ export default {
-
+
-
-
+
+