We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da4be9 commit f6cd70eCopy full SHA for f6cd70e
1 file changed
packages/client/logic/slides.ts
@@ -20,9 +20,8 @@ export function getSlidePath(
20
if (typeof route === 'number' || typeof route === 'string')
21
route = getSlide(route)!
22
const no = route.meta.slide?.frontmatter.routeAlias ?? route.no
23
- const basePath = import.meta.env.BASE_URL.replace(/\/$/, '') ?? ''
24
- const path = exporting ? `/export/${no}` : presenter ? `/presenter/${no}` : `/${no}`
25
- return `${basePath}${path}`
+ const path = exporting ? `export/${no}` : presenter ? `presenter/${no}` : `${no}`
+ return `${import.meta.env.BASE_URL}${path}`
26
}
27
28
export function useIsSlideActive() {
0 commit comments