blazor server | Disable anchor intercepting RRS feed

  • Question

  • User2110873642 posted

    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.

    Wednesday, July 29, 2020 1:34 AM

All replies

  • User-2121988648 posted

    Try giving the absolute url starting with http:// or https://

    Wednesday, July 29, 2020 8:01 AM
  • User2110873642 posted

    thats a very unclean approuch. isnt there a simple route option? in startup.cs?

    Tuesday, August 4, 2020 12:06 PM