File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed
Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change 77 * - /package/vue/ → /package/vue
88 * - /docs/getting-started/?query=value → /docs/getting-started?query=value
99 */
10- export default defineNuxtRouteMiddleware ( to => {
11- if ( import . meta. server ) {
12- const event = useRequestEvent ( )
13- const url = event ?. node . req . originalUrl || event ?. node . req . url || ''
10+ export default defineNuxtRouteMiddleware ( ( ) => {
11+ // if (import.meta.server) {
12+ // const event = useRequestEvent()
13+ // const url = event?.node.req.originalUrl || event?.node.req.url || ''
1414
15- if ( url . includes ( '_payload' ) ) return
16- }
15+ // if (url.includes('_payload')) return
16+ // }
1717
18- if ( to . path !== '' && ! to . path . endsWith ( '/' ) ) {
19- return navigateTo (
20- {
21- path : to . path + '/' ,
22- query : to . query ,
23- hash : to . hash ,
24- } ,
25- { replace : true } ,
26- )
27- }
18+ // if (to.path !== '' && !to.path.endsWith('/')) {
19+ // return navigateTo(
20+ // {
21+ // path: to.path + '/',
22+ // query: to.query,
23+ // hash: to.hash,
24+ // },
25+ // { replace: true },
26+ // )
27+ // }
28+ return
2829} )
You can’t perform that action at this time.
0 commit comments