Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
Is there something i can use inplace of @item.Url to generate a relative url and then prefix this with hardcoded domain.
so something like
<a href="fixed-domain.com + @item.Url" >@item.Name</a>
thanks
Just create a Uri, and get its PathAndQuery:
<a href="fixed-domain.com + @(new Uri(item.Url).PathAndQuery)" >@item.Name</a>
If item is an IPublishedContent then you can use:
@item.UrlWithDomain()
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
relative url
Hi
Is there something i can use inplace of @item.Url to generate a relative url and then prefix this with hardcoded domain.
so something like
thanks
Just create a Uri, and get its PathAndQuery:
If item is an IPublishedContent then you can use:
is working on a reply...