Skip to content

Commit f6cd70e

Browse files
committed
fix
1 parent 9da4be9 commit f6cd70e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/client/logic/slides.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ export function getSlidePath(
2020
if (typeof route === 'number' || typeof route === 'string')
2121
route = getSlide(route)!
2222
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}`
23+
const path = exporting ? `export/${no}` : presenter ? `presenter/${no}` : `${no}`
24+
return `${import.meta.env.BASE_URL}${path}`
2625
}
2726

2827
export function useIsSlideActive() {

0 commit comments

Comments
 (0)