Mar 09, 2018 01:54 PM|mgebhard|LINK
Your approach will not work as Razor code runs on the server. I assume the StringBuilder is in an action method. You'll need to hard code the URL or use data driven design.
For the second time, if you want help you'll need to post all the relevant code.