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
My website has profile section where you can view users usernames, the structure is site.com/user/{username}
We have a requirement to allow users to use the % sign in their username. I'm making sure to urlencode the username to prevent issues on the server side.
So for example a URL might be site.com/user/john%25
The issue comes when I call route().current('user.profile'), I get the following error in my browser: URIError: URI malformed
Ziggy version
2.3.0
Laravel version
11.28.0
Description
My website has profile section where you can view users usernames, the structure is site.com/user/{username}
We have a requirement to allow users to use the % sign in their username. I'm making sure to urlencode the username to prevent issues on the server side.
So for example a URL might be site.com/user/john%25
The issue comes when I call route().current('user.profile'), I get the following error in my browser:
URIError: URI malformed
Ziggy call and context
Ziggy configuration
Route definition
The text was updated successfully, but these errors were encountered: