I have the following:
<a href="@Model.Link.Url">
Where by the Link is a glass Link property:
public virtual Link Link { get; set; }
The problem is that the destination page has restricted access to logged in users only. It seems that glass/sitecore is smart enough to realise this and won't render the Url. Instead it renders the current url, rather than "currenturl/edit".
The problem with this is that when an unauthenticated user clicks the link I want it to take them to the login page, where once logged in it will redirect them to the restricted page they originally wanted. But because the correct url isn't being rendered, this process is not invoked.
How do I get it to render the Url regardless of permissions?