Hyperlinks in a Blazor component are intercepted automatically. When a user clicks a hyperlink the browser will not send a request to the server, instead Blazor will update the URL in the browser and render the page on the adress.
<a href="/Counter">This doesnt send a http request</a>
Is there a way to turn this off, and create a regular hyperlink? For SEO purposes, and for not needing the forcereload argument.
Member
5 Points
167 Posts
blazor server | Disable anchor intercepting
Jul 29, 2020 01:34 AM|fazioliamboina|LINK
Hyperlinks in a Blazor component are intercepted automatically. When a user clicks a hyperlink the browser will not send a request to the server, instead Blazor will update the URL in the browser and render the page on the adress.
Is there a way to turn this off, and create a regular hyperlink? For SEO purposes, and for not needing the forcereload argument.
Member
30 Points
32 Posts
Re: blazor server | Disable anchor intercepting
Jul 29, 2020 08:01 AM|vsetia|LINK
Try giving the absolute url starting with http:// or https://
Member
5 Points
167 Posts
Re: blazor server | Disable anchor intercepting
Aug 04, 2020 12:06 PM|fazioliamboina|LINK
thats a very unclean approuch. isnt there a simple route option? in startup.cs?