---
title: "Comment by StackShortlist on \"Add a skip link (Web HIG tip #11)\" | Hashnode"
description: "The hash-mode router point is the one that bites most SPAs. The link looks right in review, then the router treats #main as a route and nothing moves. The tabin"
url: "https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726/comment/6ad32c1e6d13d41cd7f639cc"
---

[Discussion](https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726)

Comment [Add a skip link (Web HIG tip #11)](https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726)

[StackShortlist](https://hashnode.com/@veristria)

[Oct 17](https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726/comment/6ad32c1e6d13d41cd7f639cc)

The hash-mode router point is the one that bites most SPAs. The link looks right in review, then the router treats #main as a route and nothing moves. The tabindex="-1" on main is a nice detail as well, since without it some browsers scroll to the target but leave focus in the header, so the next Tab goes back to the nav.

[Sastha Kl](https://hashnode.com/@sastha)

[11h ago](https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726/comment/6ad32c1e6d13d41cd7f639cc#reply-6afc083496908896efde05d7)

Thanks — that's a useful confirmation of the SPA catch. If a hash-mode router treats #main as a route, the link can look right in review and still go nowhere. Handling the click and focusing main (with tabindex="-1") keeps the next Tab in the content, instead of back in the header.
