I noticed when using the editor to link to other content, it generates a URL similar to:
/{localLink:1178}
It then looks up the URL when it renders the page and replaces it with the appropriate URL. Is there some way to override this? I'd like to replace all .aspx extensions only on the page render.
Essentially, I'm rewriting all the ASPX urls to HTML urls. I've implemented this fine in my Razor scripts, but {localLink} is handled differently. I just want to inject some code before it renders the full URL, replacing the ".aspx" with ".html"
Overriding {LocalLink}
I noticed when using the editor to link to other content, it generates a URL similar to:
It then looks up the URL when it renders the page and replaces it with the appropriate URL. Is there some way to override this? I'd like to replace all .aspx extensions only on the page render.
Hi Chris
If I understand you correctly you want to use extension less url on all of your site?
Then it should be a matter of setting umbracoUseDirectoryUrls to true in the web.config.
Hope this helps - otherwise try giving some more detail :)
/Jan
Hi Jan,
Essentially, I'm rewriting all the ASPX urls to HTML urls. I've implemented this fine in my Razor scripts, but {localLink} is handled differently. I just want to inject some code before it renders the full URL, replacing the ".aspx" with ".html"
Any ideas on this one?
is working on a reply...