However when deployed to Azure I only get /VerifyEmail?verifyToken=0b37caae650c46c3ad317aaf81795561
Is there some settings that are stopping the deployed code from generating a full uri?
ps I’m running ServiceStack in DotNet Core not sure if that will make any difference.
this happens only in dev via iisexpress and not in production, based on what you are saying it shouldn’t be returning https://localhost:44306/ in the uri at all in dev?
The solution is to always pass IRequest in. Do this for anything that needs access to the current IRequest. ServiceStack has no way to access the current IRequest unless it’s passed in or it’s available via a singleton. I can’t be any clearer, if you want consistent behavior always pass IRequest or manually concatenate the base url yourself as shown above.
Why it’s different, could be your dev iisexpress version could have IHttpContextAccessor pre-configured by default. If you read the link in my previous comment it says it used to be registered by default but has since been removed.