Ruby on rails server. We are sending an email.
The content has a hyperlink, containing a URL which has a token in its query params. The content also has the same URL in plain text.
Hyperlink
%p= link_to "Review", "#{@link}", target: "_blank"
Plain text
%p{ style: "word-wrap: break-word;" } #{@link}
When the destination address is @mailinator.com, the hyperlink URL will be altered and the security token from the URL params will not work anymore on the server.
This is the correct token from the plain text URL:
token=HM%2FTEkoKiTaBp0Ue%2BwPqjQ7Oxj4%2F1rWVuzgrxlUv2JEe6uGgdyuO41ENztyW%0A%2FpXewq1qY8MC
And this is the token from the URL modified by mailinator (the one you get after accessing the hyperlink):
token=HM/TEkoKiTaBp0Ue+wPqjQ7Oxj4/1rWVuzgrxlUv2JEe6uGgdyuO41ENztyW%0A/pXewq1qY8MCVa7fcmuu
QUESTIONS:
Is there anything on my side that I can do to fix this? I checked and gmail does not alter the URL from the hyperlink.
OPINIONS:
I think this is a bug on the mailinator side. From what I see, the mailinator guys are URL Decoding my token:
From the original:
HM%2FTE
They output:
HM/TE
Which is exactly the URL Decoding of the original value.