Skip to content

Commit 4690b1a

Browse files
committed
fix: don't redirect for nuxt erros
1 parent 1657bff commit 4690b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/middleware/canonical-redirects.global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default defineEventHandler(async event => {
3232
const path = event.path.split('?')[0]!
3333

3434
// username
35-
if (path.startsWith('/~')) {
35+
if (path.startsWith('/~') || path.startsWith('/_')) {
3636
return
3737
}
3838

0 commit comments

Comments
 (0)