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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.