CleanUrls with with-subfolders/without-subfolders fails lookup from __VP_HASH_MAP__
upon trailing slash
#1442
Closed
3 tasks done
Labels
Describe the bug
When entering a page from outside the main index
/
, the hydration fails when trying to access the chunk in pathToFile requesting/assets/docs_quick-reference_index.md.undefined.lean.js
leading to aHydration completed but contains mismatches.
The underlying page loads successfully, but any further navigation is broken.
NOTE: This only occurs when there's a trailing slash.
The key being used is
docs_quick-reference_index.md
, but the key should bedocs_quick-reference.md
.Reproduction
Set cleanUrls with
with-subfolders
orwithout-subfolders
, add a page further down the content tree, build the project, and access it directly from the browser with a trailing slash.Expected behavior
The lookup from
__VP_HASH_MAP__
should be successful and correctly load the lean chunk making the page interactive.System Info
Additional context
Possible solution could be to check for both an
index.md
key as well as a stripped key to cover both use cases.Validations
The text was updated successfully, but these errors were encountered: