spatie / laravel-ray

Debug with Ray to fix problems faster in Laravel apps
https://myray.app
MIT License
291 stars 64 forks source link

Laravel signed URLs are getting corrupted in Mail view #343

Closed htulibacki closed 6 months ago

htulibacki commented 7 months ago

Describe the bug When you click on a button, like the one for email verification, you always get a 403 error - invalid signature. Seems like the "=" sign is getting dropped.

Versions Ray version (you can see this in "About Ray"): 2.7.5

You can use composer show to get the version numbers of:

PHP version: 8.3 Laravel version: 11.4

To Reproduce Steps to reproduce the behavior:

  1. Send default Fortify email verification message.
  2. Click on Confirm button (or even on link in the footer).
  3. 403 - Invalid signature

Expected behavior There should't be any error.

Desktop (please complete the following information):

freekmurze commented 7 months ago

I've tried to reproduce this using our demo app.

It contains a mailable with a link containing =

https://github.com/spatie/laravel-ray-demo-app/blob/6bb9f8d9e1c8758d3fbedfe354ab129d5a585003/resources/views/mails/test.blade.php#L6

You can send that mail to Ray using php artisan mail

When clicking the "View order" button in the mail, the correct link (https://spatie.be/?hey=yo&option=value) opens in the browser.

So, it seems to be working. Could you PR a link that does not work to our demo app?

htulibacki commented 7 months ago

Sure!

https://github.com/spatie/laravel-ray-demo-app/pull/3

edalzell commented 6 months ago

I get this too, only w/ signed urls

freekmurze commented 6 months ago

This is fixed in the latest version.