In SSRS 2008, I would like to create a relative path URL. In short, I have a subscription that outputs several thousand static HTML pages to a folder that is used as content for the website. I used to create full URLs to other pages of the site (actually) using the properties of the text field â Action â Go to URL. I would like to modify my code so that it returns the relative path of the target instead of the full URL. This will reduce the likelihood that someone will ultimately break the navigation by changing the site structure or folder structure. When I tried to do this work, the objects that were previously available for click were no longer there, but could be clicked. How do I make the SSRS hyperlink go to a relative URL instead of a full URL?
Here's what works:
="https://some.domain.com/some_page/" + Fields!Custom_Page_Name.Value.ToString() + ".html"
Here what does not work:
="../" + Fields!Custom_Page_Name.Value.ToString() + ".html" ="/" + Fields!Custom_Page_Name.Value.ToString() + ".html" =Fields!Custom_Page_Name.Value.ToString() + ".html" ="..\" + Fields!Custom_Page_Name.Value.ToString() + ".html" ="\" + Fields!Custom_Page_Name.Value.ToString() + ".html"
source share