. dot not possible in url param
Hello, I just wanted to install a cool function for a sales department. The URL query parameters should be automatically inserted into the form:
But as soon as there is a dot in the URL, for example in the e-mail address, I get a 404
14 Replies
Hello, @John Wink
I have some solutions to fix your bug
there are some ways to fix it
I am grateful for any solution
Where are you getting the qurl query parameters from? The same application from lead for example?
Add constraints to ensure that URL parameters can include dots
Route::get('/create', [YourController::class, 'create'])
->where('email', '.*');
like thisThis is a Filament Resource CreatePage
so
%40
for the @
symbol works...? couldn't you pass in %2E
for the .
? maybe URL encode the entire string?Just encode your URLs and then decode them again when needed
I have already tried it. Unfortunately, encoding and decoding dots does not work.
this is a filament route not a custom route.
Why, isn't the '@' encoded successfully in this example?
/create?first_name=John&last_name=Doe&email=johndoe%40example.com
try this:
not tested btw
If I enter @ in the URL, it automatically becomes %40
dot does not work even with your new solution because it does not arrive at this function at all.
There seems to be an error in the compiler of the route.
I have found a workaround
I have created a new HostValidator and there I cut out the additional string that is added as soon as there is a dot in the query parameters.