laravel-trailing-slash
laravel-trailing-slash copied to clipboard
Laravel v5.7 Email Verification fails
Once again, thanks for this great package.
When Laravel v5.7.7 Email Verification is active along with Laravel Trailing Slash v0.3:
See: https://laravel.com/docs/5.7/verification
The resulting email verification link leads to a 403 forbidden page/error. Here's an example of the verification link within an email:
https://example.test/email/verify/18/?expires=1538517669&signature=7ec33d096ee73ed6b911fb9b3a2b09bf17f49129c0af22716d6e1cfcbb805256
When Laravel Trailing Slash is removed, email verification works fine. Even if your package-specific .htacess redirect is left in place, verification works as long as Laravel Trailing Slash is removed.
When it's removed, I notice the verify link doesn't have a slash after the user ID:
https://example.test/email/verify/18?expires=
vs:
https://example.test/email/verify/18/?expires=
Thanks.