chinleung / laravel-multilingual-routes

A package to handle multilingual routes in your Laravel application.
https://github.com/chinleung/laravel-multilingual-routes-demo
MIT License
401 stars 25 forks source link

Fix home route URI containing leading slash #80

Closed fyrts closed 9 months ago

fyrts commented 9 months ago

Some third party packages (for example Ziggy, which is used by Breeze) have issues with the prefixed home URI containing a leading slash. This results in the home URL being rendered as http://localhost//en instead of http://localhost/en. Considering that Laravel's own Router removes leading slashes from URI's, I thought it might be appropriate to remove it here as well.

chinleung commented 9 months ago

Thanks for the contribution @fyrts! 😄