The URL builder will add querystring parameters to the URL so you can't just put `/path` at the end otherwise you'll end up with an abomination like `https://domain.com/reset-password?returnUrl=return-url/token-value`, which makes no sense.

You need to put the path in the first argument so it should look something like:

   @idUrlBuilder.buildUrl("/reset-password/" + token, idRequest)

or neater,

   @idUrlBuilder.buildUrl(s"/reset-password/$token", idRequest)

if you embrace Scala 2.10's string interpolation.