StateOfJS-Vulcan icon indicating copy to clipboard operation
StateOfJS-Vulcan copied to clipboard

Off-by-one on the sidebar navigation links

Open brettgoulder opened this issue 4 years ago • 0 comments

For example, if you go to this link: https://survey.stateofjs.com/survey/state-of-js/2020/read-only/1 "Syntax" is highlighted in the navigation, but the content will display "Language". Pictured below:

Screen Shot 2020-12-24 at 8 12 26 PM

I think this is just an issue with zero indexing, because if you manually change "1" to "0" in the URL, it'll correctly show "Syntax".

brettgoulder avatar Dec 25 '20 04:12 brettgoulder