You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standalone decks published under a deck-specific base path were generating duplicated subroutes during in-deck navigation, e.g. /aiops-Mainteance-mit-KI/aiops-Mainteance-mit-KI/2. The result was broken slide navigation even though the correct deck root still existed.
Routing fix
Add a small router shim in setup/main.ts to normalize navigation targets before they reach Vue Router.
Strip the configured router base from router.push / router.replace targets when Slidev passes base-prefixed paths.
Boundary-safe normalization
Only remove exact path-prefix matches at segment boundaries.
Preserve unrelated paths that merely start with similar characters.
Scope
Centralized in shared Slidev app setup, so the fix applies to standalone decks without touching individual presentation files.
we upgraded the version of slidev. it looks like that routing behabior chaaged. Previously I could only define a routeAlias for singe pages and from there on all navigation was relative, so that was done for the first slide.
In the previous fix attempt you discovered that there is now also a setting on deck-level to set a alies.
Thake this as hint, maybe you also find documentation online.
Remember the result is hosted on github pages. @copilot
Does your patch still apply with thtis information?
we upgraded the version of slidev. it looks like that routing behabior chaaged. Previously I could only define a routeAlias for singe pages and from there on all navigation was relative, so that was d...
Yes — with the current Slidev behavior, the shim still applies.
I checked the current Slidev docs/source: routeAlias is still a slide URL alias, not a replacement for the deck base path. In this repo each standalone deck is already deployed on GitHub Pages with --base "/<deck>/" from build.sh, so using the deck slug as an alias would add another path segment instead of fixing the doubled one.
The duplicated URL comes from navigation targets that already include the base before Vue Router resolves them. Normalizing router.push / router.replace in setup/main.ts is what prevents /aiops-Mainteance-mit-KI/aiops-Mainteance-mit-KI/2 while keeping the GitHub Pages subpath hosting intact.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Standalone decks published under a deck-specific base path were generating duplicated subroutes during in-deck navigation, e.g.
/aiops-Mainteance-mit-KI/aiops-Mainteance-mit-KI/2. The result was broken slide navigation even though the correct deck root still existed.Routing fix
setup/main.tsto normalize navigation targets before they reach Vue Router.router.push/router.replacetargets when Slidev passes base-prefixed paths.Boundary-safe normalization
Scope