Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Posts routed twice #2

Closed
King-of-Infinite-Space opened this issue Jun 17, 2021 · 2 comments
Closed

Posts routed twice #2

King-of-Infinite-Space opened this issue Jun 17, 2021 · 2 comments

Comments

@King-of-Infinite-Space
Copy link
Owner

King-of-Infinite-Space commented Jun 17, 2021

Original problem - posts with Chinese characters in permalink go to 404

Solution - modify router in enhanceApp.js vuepress-reco/vuepress-theme-reco-1.x#276

Current problem (side effect) - need to go back twice in order to go to previous page, presumably due to extra routing introduced in solution

Remark - according to vuejs/vuepress#2716, this problem does not occur for vue-router version <= 3.4.5. But my initial test is unsuccessful, need further testing.

@King-of-Infinite-Space
Copy link
Owner Author

King-of-Infinite-Space commented Jun 18, 2021

974eb9f removes .html from the permalink, making it different from the path to the static html file. This seems to fix the issue locally but not only Gh pages.

Using [email protected] (without enhanceApp.js) gives 404 for me.

@King-of-Infinite-Space
Copy link
Owner Author

This issue seems to disappear in Chrome 99, but persists in Firefox 98. Maybe Chrome changes its way of handling duplicate routing.

A new solution in the aforementioned issue solves it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant