- Location - The location of the application. Usually just a URL, but the location can contain multiple pieces of information that can be used by an app
- pathname - The "file/directory" portion of the URL, like invoices/123
- search - The stuff after ?in a URL like/assignments?showGrades=1.
- query - A parsed version of search, usually an object but not a standard browser feature.
- hash - The #portion of the URL. This is not available to servers inrequest.urlso its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.
- state - Object associated with a location. Think of it like a hidden URL query. It's state you want to keep with a specific location, but you don't want it to be visible in the URL.
 
- pathname - The "file/directory" portion of the URL, like 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * This is a HACK to fetch all routes from an express | |
| * router with nested sub-routers | |
| * | |
| * It uses the regex pattern added to the sub-router and | |
| * tries to normalize it into something more human readable | |
| * since this doesn't appear to be stored elsewhere as far | |
| * as I could tell | |
| */ | |
| const replaceParams = (string) => { |