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 f471f07 commit 28c6ff0Copy full SHA for 28c6ff0
app/middleware/trailing-slash.global.ts
@@ -8,6 +8,13 @@
8
* - /docs/getting-started/?query=value → /docs/getting-started?query=value
9
*/
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 || ''
14
+
15
+ if (url.includes('_payload')) return
16
+ }
17
18
if (to.path !== '' && !to.path.endsWith('/')) {
19
return navigateTo(
20
{
0 commit comments