ButterCMS / laravel-starter-buttercms

Drop-in proof-of-concept PHP/Laravel app, fully integrated with your ButterCMS account
http://laravel-starter-buttercms.herokuapp.com/
7 stars 1 forks source link

Trailing slash missing from search route #5

Closed ViolanteCodes closed 2 years ago

ViolanteCodes commented 2 years ago

To search for query "Butter", for example, URL returned by search is "http://localhost:8000/blog/search/?q=butter" (missing trailing slash). Adding trailing slash to route in URL bar, for example, "http://localhost:8000/blog/search/?q=butter/", shows page with search term "butter/". We'd like for the route to have/require a trailing slash, same as the other routes. Is this doable? Thanks!

janondracek1 commented 2 years ago

@ViolanteCodes It is doable, but

Trailing slashes before query parameters make sense, but after them? I do not think I've ever seen that being implemented.

ViolanteCodes commented 2 years ago

@janondracek1 Yep, you're right, I'm closing out this issue. After consulting my notes, we had to temporarily add it to a checklist as a workaround and it was not pulled from checklist. Sorry about that, and thank you for taking the time to explain.