Information: I have made a "tabs" type section to display all of my legal forms (https://get.goreact.com/legal/). I have given each individual tab an ID that populates in the URL. For example when I click "Privacy Policy" the URL changes to (https://get.goreact.com/legal/#legal|2).
Problem Trying To Solve: The URL changes depending on what tab/button you click on. But if you try going that the URL directly (or a new tab) it doesn't open the correct tab/display the correct content.
What code do I need to add in order to have the URL "https://get.goreact.com/legal/#legal|1" and "https://get.goreact.com/legal/#legal|2" and so on open the respective tabs? I am new to JS and need some help.