Adjust the URL in the passwordReset.vm template to something like $webUrl/modern/reset-password?
I confirm that adding 'modern/reset-password' to the link does make a difference, I don't get redirected.
Did you also add reset-password to test so the link looks something like below?
https://mydomain.com/modern/reset-password?passwordReset=8e6a3xxxxxf2451182d71axxxxxxxxxxxxxxx
Yes, the url https://mydomain.com/modern/reset-password/?passwordReset=d5c4466fa81e36b05441e2fdXXXXXXXXXXX works like a charm.
Not sure why it is not working for you. Since I only use the modern app my settings that work looks like below:
In traccar.xml
<entry key='web.url'>https://mydomain.com/modern</entry>
Then in the passwordReset.vm template
href="$webUrl/reset-password?passwordReset=$token">$webUrl/reset-password?passwordReset=$token
It is working for me.
Nice. So I guess the 5.2 version needs a PR to fix the passwordReset.vm template, right?
<a href="$webUrl?passwordReset=$token">$webUrl?passwordReset=$token</a><br>
I've set the server url so the password reset link can point to the right location. Example: https://mydomain.com/?passwordReset=d5c4466fa81e36b05441e2fdXXXXXXXXXXX
But when I click it I get redirect back to the home page. Is it something with the server or maybe Cloudflare is doing funky things?
Thanks!