Repository navigation
Glossary: "Read more" goes back to the current page instead of the documentation page #8206
SummaryWhen a glossary term is opened by clicking its link in a page, the "Read more" link in the overlay doesn't open the documentation page. The browser goes back to the page I came from instead. Environment
Steps to reproduce
ObservedI'm back on the page from step 2, with the overlay closed. Opening the overlay straight from the URL (pasting Expected
Likely causeIn function openDocumentation() {
const href = documentationHref.value
close() // router.back() when the overlay was opened by a click
router.push(href) // overridden by the back navigation
}Suggested fixSkipping function openDocumentation() {
const href = documentationHref.value
guardUnsaved(() => {
siteStore.$patch({ overlay: '' })
router.push(href)
})
}WorkaroundA capture-phase click listener in the theme's head HTML that does a plain |
Fixed via de28419. Will land in next release.