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
Now, when i use a RegExp routes, i cannot use openPage or redirectPage functions. Router throws RegExp routes are not supported. So may be we can support this by adding second converter to route? Something like this:
exportconst$router=createRouter({profile: [/\/(student|teacher|manager)\/profile/,(urlRole)=>{return{role: urlRole}},(urlRole)=>`/${urlRole}/profile`],
where it is ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^})
So router can determine the redirect url and do redirect?
The text was updated successfully, but these errors were encountered:
Now, when i use a RegExp routes, i cannot use
openPage
orredirectPage
functions. Router throwsRegExp routes are not supported
. So may be we can support this by adding second converter to route? Something like this:So router can determine the redirect url and do redirect?
The text was updated successfully, but these errors were encountered: