简体   繁体   中英

react-snap appends routes (vue-router)

I am using router-links on my pages. After implementing react-snap, those stopped working correctly, routes are appended. I looked into the generated HTML and everything is fine there.

Take a look at the green buttons on https://static.lernzettel.org/metrum/ - when accessing the page via this link, the links are not working correctly - however, when navigating there from the homepage everything is fine.

https://lernzettel.org/metrum is the version without using react-snap - no issues there in either case. I hope this is good enough for a demo. The relevant code is:

<v-card :to="{ path: post.meta.previous_post.slug}"></v-card>

post.meta.previous_post.slug in this case is "/kadenz" | I am using vuetify, should be rendered as a normal router-link | The router is in history mode.

Do you have any idea on how to deal with this?

Thanks for any help in advance ;)

post.meta.previous_post.slug 缺少 / - argggh,现在一切正常:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM