You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ion-router-link can't link to another page's anchor #19566
Current behavior:
When clicking on a ion-router-link whose href attribute contains a hash (e.g. /catalog#pens) the app doesn't navigate to the /catalog URL, and an error is printed to the console :
Expected behavior:
The app should navigate to the /catalog page and scroll down to the #pens anchor.
Thanks for the issue! It looks like this is still happening in Ionic 6. While ion-router-link has since been deprecated for all except vanilla JS or Stencil projects, I'm still able to replicate the issue in core.
This issue is somewhat related, but I believe the fixes will be separate: #19365
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
[-]bug: [/-][+]bug: `ion-router-link` can't link to another page's anchor[/+]averyrousseau commentedon Feb 7, 2022
Thanks for the issue! It looks like this is still happening in Ionic 6. While
ion-router-linkhas since been deprecated for all except vanilla JS or Stencil projects, I'm still able to replicate the issue in core.This issue is somewhat related, but I believe the fixes will be separate: #19365
fix(router): support anchor fragments in href (ionic-team#31172)
ShaneK commentedon Jun 3, 2026
Hey! The fix for this has been released as part of v8.8.9. Thanks for the report!
ionitron-bot commentedon Jul 3, 2026
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
fix(router): support anchor fragments in href (ionic-team#31172)