Is there a way with Slim to replace %20
with dashes? I'm using this specifically for a search feature on my site and would like cleaner URLS by replacing the url encoding with dashes.
I couldn't find anything online stating that this was possible.
Is there a way with Slim to replace %20
with dashes? I'm using this specifically for a search feature on my site and would like cleaner URLS by replacing the url encoding with dashes.
I couldn't find anything online stating that this was possible.
In Twig there is replace filter, you can use it.
{{ url|replace({"%20":"-"}) }}