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,
Do you want to redirect or do you want the link to be opened ?
I think you will not see the link on your page anyway because you have no text in it. You could change the code to this to have the text of the link displayed
@{
var link = Model.Value<Link>("link");
if (link != null)
{
<li><a href="@link.Url" target="@link.Target">@link.Name</a></li>
}
}
Dave
Hi,
In that case you should have a look at this : https://our.umbraco.com/Documentation/Reference/Routing/routing-properties#umbracoredirect
You can add a field with alias umbracoRedirect to your doctype that uses a content picker as property editor.
Than the redirect will happen automagically.
Dave
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.
How to redirect page to the link from Multi URL picker
@{ var link = Model.Value("link"); if (link != null) {
I tried using this but, instead of automatically redirects the page to the link, there is another page with the link from the multi url picker. Help is very much appreciated