Different transition between paths #723
-
|
How can I implement distinct transitions for the paths /work/ and /work/{slug}? The current configuration doesn't seem to be working as expected. Here's the code: {
from: '(.*)',
to: '/work',
in: async (next, infos) => {
},
out: (next, infos) => {
},
},
{
from: '(.*)',
to: '/work/(.*)',
in: async (next, infos) => {
},
out: (next, infos) => {
},
}Thanks for the help, pretty sure is super simple |
Beta Was this translation helpful? Give feedback.
Answered by
hirasso
Jul 17, 2023
Replies: 1 comment 1 reply
-
|
This is a JS Plugin question. The plugin's {
from: '(.*)',
to: '/work/',
in: (next, infos) => {
},
out: (next, infos) => {
},
},
{
from: '(.*)',
to: '/work/:slug',
in: (next, infos) => {
},
out: (next, infos) => {
},
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
daun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a JS Plugin question.
The plugin's
fromandtopaths are being parsed by path-to-regexp. Does the following work for you?