You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is that /players/:id is actually converted to a regular expression, and that's why using that string as prefix fails.
I've fixed this in version 3.0 (WIP branch, planning to release within a couple of days). The way this will be fixed is by enabling you to define a regular that will be matched as prefix. In your case, you'll define prefix as:
constprefix=/^\/players\/(.*?)\//i
Once 3.0 is out (or you can try with the v3.0-wip branch today!) that will work
I have this situation:
const prefix = '/players'
(it works)Open.svelte
(same file)Open.svelte
(same file)In
Open.svelte
whatprefix
should I have?I tried like this:
It doesn't work? Why?
It only works if I use
const prefix = '/players'
also inOpen.svelte
.It's weird, right?
I wish I can use
:ID
as prefix.The text was updated successfully, but these errors were encountered: