Skip to content

Instantly share code, notes, and snippets.

@bsa7
Last active April 8, 2020 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsa7/80ff6cb52ea8ed491bf21dc8de24e556 to your computer and use it in GitHub Desktop.
Save bsa7/80ff6cb52ea8ed491bf21dc8de24e556 to your computer and use it in GitHub Desktop.
href elements terminology
/**
 * location terminology: https://xxxxx.ru/users/:userId/news/:newsId?param1=value1&param2=value2#param3=value3
 * protocol              ^^^^^
 * domain                        ^^^^^^^^
 * hostname              ^^^^^^^^^^^^^^^^
 * pathname                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 * pathnameParams: { userId: xxx, newsId: yyy }
 * search                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 * searchParams: { param1: value1, param2: value2 }
 * hash(deprecated)                                                                             ^^^^^^^^^^^^^^
 * hashParams: { param3: value3 }
 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment