Change behavior of <a href="#..."></a>
#47687
Labels
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-routing
Milestone
Related to #8393 and #47682
Browser recognizes link in the href as a relative path against base url.
Current behavior when clicking
<a href="#.."></a>
is to scroll to the named element(or element with id) on the current page which is incorrect.The correct behavior is to navigate to the "{base url}/#.." and then scroll to the element or only scroll if you are already on that page.
Example:
Clinking on
<a href="#..."></a>
on the "/counter" page now scrolls to the element on same page. It should navigate to "/" and the scroll on "/" page.The text was updated successfully, but these errors were encountered: