This is working fine. After i red some article that says this is not a good practice to give server name in the URL so i removed as per the article and created one variable and assign the below code but it’s not calling detail report.
You can try adding the server name to your universe as a dimension object. Then in your report create a detail object based on the dimension object, and use the detail object in your hyperlink. Relative paths didn’t work for our deployment either.