Skip to content

Commit

Permalink
Update presenter/renderer/+onBeforeRoute.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
  • Loading branch information
Elweyn and ulfgebhardt authored Mar 26, 2024
1 parent 0a101c7 commit d61220e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions presenter/renderer/+onBeforeRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { PageContext } from 'vike/types'
import { extractLocale } from '#root/locales/extractLocale'

export function onBeforeRoute(pageContext: PageContext) {
if (pageContext.urlPathname.endsWith('.js')) {
return { pageContext: { urlLogical: pageContext.urlPathname } }
}

Check failure on line 6 in presenter/renderer/+onBeforeRoute.ts

View workflow job for this annotation

GitHub Actions / Lint - Presenter

Delete `⏎`
const { urlWithoutLocale, locale } = extractLocale(pageContext.urlPathname)

Expand Down

0 comments on commit d61220e

Please sign in to comment.