Users can search my site. Sometimes they might use a search term containing a forward slash (search with / slash) which when submitted by the form turns into %2F in the url.
eg. http://ift.tt/2k3GxfU
I have used the answer from here which works great to give me the right page and not send me to a 404.
My problem now is I use pagination on the page and custom filters which are both passed as get vars in the url and when accessing the GET var it's empty.
eg. http://ift.tt/2k3I45u
This is my current route
$this->get('search/{search_term}', ['uses' => 'SearchController@search'])
->where('search_term', '(.*(?:%2F:)?.*)');
Not sure what do from here
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kT9FdI
via IFTTT
Aucun commentaire:
Enregistrer un commentaire