{"id":473945,"date":"2025-09-04T21:00:30","date_gmt":"2025-09-04T21:00:30","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=473945"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=473945","title":{"rendered":"<span>\u0418\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f URL: \u0420\u043e\u0443\u0442\u0438\u043d\u0433, Query \u0438 Hash \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u0435\u043a\u0441\u0435\u0439 \u0424\u043e\u043c\u0438\u043d, \u044f Technical Lead \u0432\u043e Frontend \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <strong>Devs Universe<\/strong>. \u0412 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u044f \u0447\u0430\u0441\u0442\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0441\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 URL-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0430 \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430, SEO \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0430\u043d\u0430\u0442\u043e\u043c\u0438\u044e URL \u0438 \u0434\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e.<\/p>\n<p><strong>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 <\/strong><\/p>\n<ol>\n<li>\n<p><a href=\"#anatomiya-url-iz-chego-on-sostoit\" rel=\"noopener noreferrer nofollow\"><strong>\u0410\u043d\u0430\u0442\u043e\u043c\u0438\u044f URL: \u0438\u0437 \u0447\u0435\u0433\u043e \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442?<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#ierarhiya-i-struktura-pravilnoe-nazvanie-url\" rel=\"noopener noreferrer nofollow\"><strong>\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 (\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 URL)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#proektirovanie-routinga-marshrutizaciya\" rel=\"noopener noreferrer nofollow\"><strong>\u041f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 (\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#query-parameters-parametry-stroki-zaprosa\" rel=\"noopener noreferrer nofollow\"><strong>Query Parameters (\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#hash-fragment\" rel=\"noopener noreferrer nofollow\"><strong>Hash (\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#svodnaya-tablica-chto-i-kogda-ispolzovat\" rel=\"noopener noreferrer nofollow\"><strong>\u0421\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430: \u0447\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#kak-poluchit-chasti-url-v-javascript\" rel=\"noopener noreferrer nofollow\"><strong>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u0438 URL \u0432 JavaScript?<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#rabota-s-neidealnymi-query-parametrami\" rel=\"noopener noreferrer nofollow\"><strong>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 &#171;\u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438&#187; Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#cheklist-pravilnogo-proektirovaniya-url\" rel=\"noopener noreferrer nofollow\"><strong>\u0427\u0435\u043a\u043b\u0438\u0441\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f URL<\/strong><\/a><\/p>\n<\/li>\n<\/ol>\n<p>\u00a0<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 URL \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u043a\u0440\u0438\u0432\u0430\u044f \u0432\u044b\u0432\u0435\u0441\u043a\u0430 \u043d\u0430 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435: \u043e\u043d \u043f\u0443\u0442\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \u0438 \u043f\u043e\u0440\u0442\u0438\u0442 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435 \u043e \u0432\u0441\u0435\u043c \u0441\u0430\u0439\u0442\u0435. \u0425\u043e\u0440\u043e\u0448\u0438\u0439 URL, \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u043f\u043e\u043d\u044f\u0442\u0435\u043d, \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c \u0438 \u043d\u0435\u0441\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<p><a class=\"anchor\" name=\"anatomiya-url-iz-chego-on-sostoit\" id=\"anatomiya-url-iz-chego-on-sostoit\"><\/a><\/p>\n<h3>\u0410\u043d\u0430\u0442\u043e\u043c\u0438\u044f URL: \u0438\u0437 \u0447\u0435\u0433\u043e \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442?<\/h3>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f, \u043a\u0430\u043a URL \u0443\u0441\u0442\u0440\u043e\u0435\u043d. \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440:<br \/> <code>https:\/\/www.example.com:8080\/catalog\/search?q=watch&amp;sort=price#product-list<\/code><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"center\"><strong>\u0427\u0430\u0441\u0442\u044c URL<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"center\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">https:<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 (http, https, ftp)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u0414\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">www.example.com<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0410\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. www \u2014 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d, example \u2014 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f, .com \u2014 \u0434\u043e\u043c\u0435\u043d \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f (TLD)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u041f\u043e\u0440\u0442<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">:8080<\/p>\n<\/td>\n<td>\n<p align=\"left\">&#171;\u0414\u0432\u0435\u0440\u044c&#187; \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f HTTP \u2014 80, \u0434\u043b\u044f HTTPS \u2014 443 (\u0432 URL \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u041f\u0443\u0442\u044c (Path)<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">\/catalog\/search<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u0442\u044c \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u041e\u0441\u043d\u043e\u0432\u0430 \u0434\u043b\u044f \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">?q=watch&amp;sort=price<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 ?. \u041f\u0430\u0440\u0430 \u043a\u043b\u044e\u0447=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 &amp;. \u041d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b (\u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u043f\u043e\u0438\u0441\u043a, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u0425\u044d\u0448 (\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442)<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">#product-list<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 #. \u042f\u043a\u043e\u0440\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441 id=&#187;product-list&#187;. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<hr\/>\n<p><a class=\"anchor\" name=\"ierarhiya-i-struktura-pravilnoe-nazvanie-url\" id=\"ierarhiya-i-struktura-pravilnoe-nazvanie-url\"><\/a><\/p>\n<h3>\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 (\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 URL)<\/h3>\n<p>URL \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u0430\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0431\u044b\u0442\u044c \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c.<\/p>\n<h4>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b:<\/h4>\n<ul>\n<li>\n<p><strong>\u0427\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0441\u0442\u044c (Readable):<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043b\u043e\u0432\u0430, \u0430 \u043d\u0435 ID \u0442\u0430\u043c, \u0433\u0434\u0435 \u044d\u0442\u043e \u0443\u043c\u0435\u0441\u0442\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>\/p\/12345<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u0425\u043e\u0440\u043e\u0448\u043e:<\/strong> <code>\/products\/modern-wristwatch<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u043b\u0438\u0447\u043d\u043e:<\/strong> <code>\/catalog\/watches\/wrist\/modern-wristwatch<\/code> (\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u043d\u043e\u0441\u0442\u044c (Hierarchical):<\/strong> \u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043f\u0443\u0442\u044c \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u043a \u0447\u0430\u0441\u0442\u043d\u043e\u043c\u0443, \u043a\u0430\u043a \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435:<\/p>\n<ul>\n<li>\n<p><code>\/{section}\/{category}\/{subcategory}\/{item}<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: <code>\/blog\/javascript\/frameworks\/vue-3-composition-api<\/code> \u2014 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0433\u0434\u0435 \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c\u0441\u044f.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e:<\/strong> \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u043b\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432-\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439:<\/p>\n<ul>\n<li>\n<p><code>\/users\/<\/code> (\u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439), <code>\/users\/annasmith<\/code> (\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c);<\/p>\n<\/li>\n<li>\n<p>\u042d\u0442\u043e \u043d\u0435 \u0441\u0442\u0440\u043e\u0433\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043d\u0432\u0435\u043d\u0446\u0438\u044f \u0432 RESTful API.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e\u0441\u0442\u044c:<\/strong> \u043d\u0435 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0439\u0442\u0435 \u043f\u0443\u0442\u044c \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438. \u0418\u0437\u0431\u0435\u0433\u0430\u0439\u0442\u0435 \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>\/site.com\/blog\/posts\/article-about-how-to-build-a-website-in-2024\/<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u0425\u043e\u0440\u043e\u0448\u043e:<\/strong> <code>\/blog\/website-development-2024<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u0441\u0442\u043e\u044f\u043d\u0441\u0442\u0432\u043e (Persistence):<\/strong> URL \u2014 \u044d\u0442\u043e \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u0435. Once published, forever available. \u041d\u0435 \u043c\u0435\u043d\u044f\u0439\u0442\u0435 URL \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0431\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0441\u043e \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 (301 Moved Permanently). \u0418\u043d\u0430\u0447\u0435 \u0432\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 SEO-\u0432\u0435\u0441.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0431\u0443\u043a\u0432:<\/strong> \u0435\u0434\u0438\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435! \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <strong>\u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong>. \u0421\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b \u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 (<code>Website.com\/PAGE<\/code> \u0438 <code>website.com\/page<\/code> \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430), \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0430\u043c 404.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438:<\/strong> \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u0443\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <strong>\u0434\u0435\u0444\u0438\u0441\u044b<\/strong> (<code>-<\/code>):<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>modern_wristwatch<\/code> (\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u043e\u0445\u043e \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0445 \u0441\u0441\u044b\u043b\u043a\u0430\u0445);<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>modern%20wristwatch<\/code> (\u043f\u0440\u043e\u0431\u0435\u043b, \u0432\u0438\u0434\u0435\u043d \u043a\u0430\u043a %20);<\/p>\n<\/li>\n<li>\n<p><strong>\u0425\u043e\u0440\u043e\u0448\u043e:<\/strong> <code>modern-wristwatch<\/code> (\u0434\u0435\u0444\u0438\u0441, \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043b\u0435\u0433\u043a\u043e \u0438 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u0435\u043d \u0434\u043b\u044f SEO).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr\/>\n<p><a class=\"anchor\" name=\"proektirovanie-routinga-marshrutizaciya\" id=\"proektirovanie-routinga-marshrutizaciya\"><\/a><\/p>\n<h3>\u041f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 (\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f)<\/h3>\n<p>\u0420\u043e\u0443\u0442\u0438\u043d\u0433 \u2014 \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 URL \u0441 \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430.<\/p>\n<h4>\u041f\u043e\u0434\u0445\u043e\u0434\u044b:<\/h4>\n<ol>\n<li>\n<p><strong>\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 (Traditional):<\/strong> \u043a\u0430\u0436\u0434\u044b\u0439 URL \u0432\u0435\u0434\u0435\u0442 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong> \u043f\u0440\u043e\u0449\u0435 \u0434\u043b\u044f SEO (HTML \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0441\u0440\u0430\u0437\u0443), \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 JavaScript \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435;<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong> \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 (SPA &#8212; Single Page Application):<\/strong> \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0434\u0430\u0435\u0442 \u043e\u0434\u0438\u043d HTML-\u0444\u0430\u0439\u043b, \u0430 JavaScript \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, React Router, Vue Router) \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 URL \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 &#171;\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b&#187; (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b) \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438, \u0431\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong> \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 &#171;\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438&#187;, \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u0430\u043a \u0443 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong> \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441 SEO (\u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SSR &#8212; Server-Side Rendering), \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u043b\u044c\u0448\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>\u041f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u043e\u0443\u0442\u043e\u0432<\/h4>\n<ul>\n<li>\n<p><strong>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0443\u0442\u0438:<\/strong> <code>\/about<\/code>, <code>\/contact<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/strong> \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430:<\/p>\n<ul>\n<li>\n<p>\u041f\u0443\u0442\u044c: <code>\/users\/:userId<\/code> \u0438\u043b\u0438 <code>\/products\/:productId<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: URL <code>\/users\/annasmith<\/code> -&gt; \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>userId = \"annasmith\"<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0440\u043e\u0443\u0442\u044b (Nested Routes):<\/strong> \u041e\u0442\u0440\u0430\u0436\u0430\u044e\u0442 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u0432 UI:<\/p>\n<ul>\n<li>\n<p>\u0420\u043e\u0443\u0442: <code>\/settings\/:tab<\/code> (e.g., <code>\/settings\/profile<\/code>, <code>\/settings\/security<\/code>);<\/p>\n<\/li>\n<li>\n<p>\u0420\u043e\u0443\u0442: <code>\/dashboard\/analytics\/overview<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr\/>\n<p><a class=\"anchor\" name=\"query-parameters-parametry-stroki-zaprosa\" id=\"query-parameters-parametry-stroki-zaprosa\"><\/a><\/p>\n<h3>Query Parameters (\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430)<\/h3>\n<p>\u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044c URL, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 <code>?<\/code> \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u0430\u0440 <code>\u043a\u043b\u044e\u0447=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/code>, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 <code>&amp;<\/code>.<br \/> <code>https:\/\/example.com\/products?category=watches&amp;sort=price\\_asc&amp;page=2<\/code><\/p>\n<h4>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h4>\n<ul>\n<li>\n<p><strong>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u043f\u043e\u0438\u0441\u043a:<\/strong><\/p>\n<ul>\n<li>\n<p><code>?category=electronics&amp;price_min=100&amp;price_max=500<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>?sort=date_desc<\/code> (\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e \u0434\u0430\u0442\u0435, \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e);<\/p>\n<\/li>\n<li>\n<p><code>?q=search+query<\/code> (\u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f:<\/strong> <code>?page=3&amp;limit=25<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f:<\/strong> <code>?view=grid<\/code> \u0438\u043b\u0438 <code>?view=list<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 (UTM-\u043c\u0435\u0442\u043a\u0438):<\/strong> <code>?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=promo<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432 \u043f\u0443\u0442\u0438:<\/strong> \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b \u0434\u043b\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 <code>\/products<\/code> \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u2014 \u044d\u0442\u043e \u0432\u0441\u0435 \u0442\u0430 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 <code>\/products<\/code>, \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0440\u0430\u0437\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u0430\u0436\u043d\u043e:<\/strong> Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a\u043e\u0439 HTML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432\u0435\u0440\u043d\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438). \u041e\u043d\u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"hash-fragment\" id=\"hash-fragment\"><\/a><\/p>\n<h3>Hash (\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442)<\/h3>\n<p>\u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044c URL, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <code>#<\/code>.<br \/> <code>https:\/\/example.com\/documentation#chapter-2<\/code><\/p>\n<h4>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h4>\n<ol>\n<li>\n<p><strong>\u042f\u043a\u043e\u0440\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 (\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435):<\/strong> \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441 <code>id=\"chapter-2\"<\/code>. \u042d\u0442\u043e \u0447\u0438\u0441\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f, \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0445\u044d\u0448 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 \u0432 \u0441\u0442\u0430\u0440\u044b\u0445 SPA (History API):<\/strong> \u0420\u0430\u043d\u044c\u0448\u0435, \u0434\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f History API, \u0445\u044d\u0448 (<code>#<\/code> \u0438 <code>#!<\/code>) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 \u0432 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0445\u044d\u0448\u0430 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: <code>example.com\/#\/dashboard<\/code>, <code>example.com\/#\/users<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.<\/strong> \u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <strong>History Mode<\/strong> (\u0440\u043e\u0443\u0442\u044b \u0431\u0435\u0437 <code>#<\/code>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 URL \u0432\u0438\u0434\u0430 <code>example.com\/dashboard<\/code>. \u042d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr\/>\n<p><a class=\"anchor\" name=\"svodnaya-tablica-chto-i-kogda-ispolzovat\" id=\"svodnaya-tablica-chto-i-kogda-ispolzovat\"><\/a><\/p>\n<h3>\u0421\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430: \u0447\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 URL<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440?<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041f\u0443\u0442\u044c (Path)<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\/catalog\/watches\/racer-x<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u00a0<strong>\u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/strong>\u00a0\u0438\u043b\u0438\u00a0<strong>\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/strong>. \u041e\u0441\u043d\u043e\u0432\u0430 SEO \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0430\u0439\u0442\u0430.<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0414\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>?color=blue&amp;size=42<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043b\u044f\u00a0<strong>\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f<\/strong>\u00a0\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b: \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u043f\u043e\u0438\u0441\u043a, \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f. \u041d\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0414\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0425\u044d\u0448 (Fragment)<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>#specifications<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043b\u044f\u00a0<strong>\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439<\/strong>\u00a0\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. (\u0423\u0441\u0442\u0430\u0440\u0435\u043b \u0434\u043b\u044f \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 \u0432 SPA).<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0435\u0442<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<hr\/>\n<p><a class=\"anchor\" name=\"kak-poluchit-chasti-url-v-javascript\" id=\"kak-poluchit-chasti-url-v-javascript\"><\/a><\/p>\n<h3>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u0438 URL \u0432 JavaScript?<\/h3>\n<p>\u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0432\u0435\u0441\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 URL \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445 <code>window.location<\/code> \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e <code>location<\/code>. \u042d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u0447\u0430\u0441\u0442\u0438 URL \u0432 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 URL \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430:<\/strong><br \/> <code>https:\/\/www.example.com:8080\/catalog\/search?q=watch&amp;sort=price#product-list<\/code><\/p>\n<pre><code class=\"javascript\">\/\/ \u041e\u0431\u044a\u0435\u043a\u0442 location \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 console.log(location); \/\/ \u0412\u044b\u0432\u0435\u0434\u0435\u0442: \/\/ { \/\/   href: \"https:\/\/www.example.com:8080\/catalog\/search?q=watch&amp;sort=price#product-list\", \/\/   protocol: \"https:\", \/\/   hostname: \"www.example.com\", \/\/   port: \"8080\", \/\/   host: \"www.example.com:8080\", \/\/ hostname + port \/\/   pathname: \"\/catalog\/search\", \/\/   search: \"?q=watch&amp;sort=price\", \/\/   hash: \"#product-list\" \/\/ }  \/\/ 1. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0435\u0441\u044c URL const fullUrl = location.href;  \/\/ 2. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0443\u0442\u044c (Path) const path = location.pathname; \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"\/catalog\/search\"  \/\/ 3. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 const searchString = location.search; \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"?q=watch&amp;sort=price\"  \/\/ 4. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0445\u044d\u0448 const hash = location.hash; \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"#product-list\"  \/\/ 5. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \/\/ \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 const urlParams = new URLSearchParams(location.search); const searchQuery = urlParams.get('q'); \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"watch\" const sortType = urlParams.get('sort'); \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"price\" const nonExistentParam = urlParams.get('page'); \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: null  \/\/ \u041f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b for (let [key, value] of urlParams) {   console.log(`${key}: ${value}`); } \/\/ \u0412\u044b\u0432\u0435\u0434\u0435\u0442: \/\/ q: watch \/\/ sort: price  \/\/ 6. \u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 URL \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \/\/ \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u0441 query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 const newParams = new URLSearchParams(); newParams.append('category', 'electronics'); newParams.append('page', '2'); const newUrl = `${location.origin}\/search?${newParams.toString()}`; \/\/ newUrl \u0431\u0443\u0434\u0435\u0442: \"https:\/\/www.example.com:8080\/search?category=electronics&amp;page=2\" <\/code><\/pre>\n<hr\/>\n<p><a class=\"anchor\" name=\"rabota-s-neidealnymi-query-parametrami\" id=\"rabota-s-neidealnymi-query-parametrami\"><\/a><\/p>\n<h3>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 &#171;\u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438&#187; Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/h3>\n<p>\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432\u044b \u0447\u0430\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 query-\u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u0443 <code>\u043a\u043b\u044e\u0447=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/code>. JavaScript-\u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0441\u043b\u0443\u0447\u0430\u0438.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 URL \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<br \/> <code>https:\/\/example.com\/search?q=watch&amp;sort=&amp;page=2&amp;filter=size&amp;filter=color&amp;flag&amp;&amp;invalid\\_value=#test<\/code><\/p>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p><code>q=watch<\/code> &#8212; \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440;<\/p>\n<\/li>\n<li>\n<p><code>sort=<\/code> &#8212; \u043a\u043b\u044e\u0447 \u0435\u0441\u0442\u044c, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0443\u0441\u0442\u043e\u0435;<\/p>\n<\/li>\n<li>\n<p><code>page=2<\/code> &#8212; \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440;<\/p>\n<\/li>\n<li>\n<p><code>filter=size&amp;filter=color<\/code> &#8212; \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c;<\/p>\n<\/li>\n<li>\n<p><code>flag<\/code> &#8212; \u043a\u043b\u044e\u0447 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p><code>&amp;invalid_value=<\/code> &#8212; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043a\u043b\u044e\u0447\u0430 (\u0440\u0435\u0434\u043a\u043e, \u043d\u043e \u0431\u044b\u0432\u0430\u0435\u0442);<\/p>\n<\/li>\n<li>\n<p><code>#test<\/code> &#8212; \u0445\u044d\u0448.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u0430\u043a \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 URLSearchParams?<\/h4>\n<pre><code class=\"javascript\">\/\/ \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441 \u0442\u0430\u043a\u0438\u043c URL const urlParams = new URLSearchParams('?q=watch&amp;sort=&amp;page=2&amp;filter=size&amp;filter=color&amp;flag&amp;&amp;invalid_value=');  \/\/ 1. \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 console.log(urlParams.get('q')); \/\/ \"watch\"  \/\/ 2. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441 \u043f\u0443\u0441\u0442\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c console.log(urlParams.get('sort')); \/\/ \"\" (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043d\u0435 null!)  \/\/ 3. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \/\/ .get() \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u041f\u0415\u0420\u0412\u041e\u0415 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 console.log(urlParams.get('filter')); \/\/ \"size\"  \/\/ \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c .getAll() console.log(urlParams.getAll('filter')); \/\/ [\"size\", \"color\"]  \/\/ 4. \u041a\u043b\u044e\u0447 \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430 \"=\" (flag) \/\/ \u0418\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441 \u043f\u0443\u0441\u0442\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c console.log(urlParams.get('flag')); \/\/ \"\" (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430)  \/\/ 5. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043a\u043b\u044e\u0447\u0430 (invalid_value=) \/\/ \u0418\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c \"invalid_value\" \u0438 \u043f\u0443\u0441\u0442\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c console.log(urlParams.get('invalid_value')); \/\/ \"\"  \/\/ 6. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430 \/\/ .has() \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043a\u043b\u044e\u0447\u0430, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0443\u0441\u0442\u043e\u0435 console.log(urlParams.has('sort')); \/\/ true console.log(urlParams.has('flag')); \/\/ true console.log(urlParams.has('nonexistent')); \/\/ false  \/\/ 7. \u041f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 for (let [key, value] of urlParams) {   console.log(`\u041a\u043b\u044e\u0447: \"${key}\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"${value}\"`); } \/\/ \u0412\u044b\u0432\u0435\u0434\u0435\u0442: \/\/ \u041a\u043b\u044e\u0447: \"q\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"watch\" \/\/ \u041a\u043b\u044e\u0447: \"sort\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"\" \/\/ \u041a\u043b\u044e\u0447: \"page\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"2\" \/\/ \u041a\u043b\u044e\u0447: \"filter\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"size\" \/\/ \u041a\u043b\u044e\u0447: \"filter\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"color\" \/\/ \u041a\u043b\u044e\u0447: \"flag\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"\" \/\/ \u041a\u043b\u044e\u0447: \"invalid_value\", \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \"\" <\/code><\/pre>\n<h4>\u0412\u0430\u0436\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b<\/h4>\n<ol>\n<li>\n<p><strong>\u041f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (<\/strong><code><strong>?key=<\/strong><\/code><strong>) \u2260 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (<\/strong><code><strong>?key<\/strong><\/code><strong>) \u2260 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043a\u043b\u044e\u0447\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0418 <code>?key=<\/code>, \u0438 <code>?key<\/code> \u0432\u0435\u0440\u043d\u0443\u0442 <code>\"\"<\/code> (\u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443) \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 <code>.get('key')<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u041d\u043e \u0432 URL \u043e\u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443, \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044d\u043a\u0435\u043d\u0434-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043d\u0435\u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041c\u0435\u0442\u043e\u0434 <\/strong><code><strong>.get()<\/strong><\/code><strong> \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 <\/strong><code><strong>null<\/strong><\/code><strong>.<\/strong> \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u0442 \u2014 \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f <code>null<\/code>. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0443\u0441\u0442\u043e\u0435 \u2014 \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 <code>\"\"<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <\/strong><code><strong>.getAll()<\/strong><\/code><strong>.<\/strong> \u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u0447\u0435\u043a\u0431\u043e\u043a\u0441\u043e\u0432, \u043c\u0443\u043b\u044c\u0442\u0438\u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0432 \u0432 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0445.<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043e\u0432\u0435\u0442:<\/strong>  \u0432\u0441\u0435\u0433\u0434\u0430 \u044f\u0432\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0443\u0439\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b.<\/p>\n<pre><code class=\"javascript\">\/\/ \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e: if (urlParams.get('sort')) {    \/\/ \u042d\u0442\u043e \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 sort=\"\", \u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 }  \/\/ \u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u0430\u043a: const sortValue = urlParams.get('sort'); if (sortValue !== null) {   \/\/ \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 sortValue \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439   \/\/ \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 'sort' \u0431\u044b\u043b \u0432 URL (\u043f\u0443\u0441\u0442\u044c \u0438 \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f) }  \/\/ \u0418\u043b\u0438 \u0442\u0430\u043a: if (urlParams.has('sort')) {   \/\/ \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 'sort' \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 URL (\u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f) } <\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u0448 \u043a\u043e\u0434 \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u043c \u0438 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u043c \u043e\u0442 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"cheklist-pravilnogo-proektirovaniya-url\" id=\"cheklist-pravilnogo-proektirovaniya-url\"><\/a><\/p>\n<h3>\u0427\u0435\u043a\u043b\u0438\u0441\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f URL<\/h3>\n<ol>\n<li>\n<p><strong>URL \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043f\u0443\u0442\u044c:<\/strong> <code>\/blog\/category\/article-name<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0438 \u0434\u0435\u0444\u0438\u0441\u044b;<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 ID \u0441\u043a\u0440\u044b\u0442\u044b \u0442\u0430\u043c, \u0433\u0434\u0435 \u0432\u0430\u0436\u0435\u043d \u0441\u043c\u044b\u0441\u043b:<\/strong> <code>\/users\/annasmith<\/code>, \u0430 \u043d\u0435 <code>\/users\/4815162342<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/strong> (\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u0444\u0438\u043b\u044c\u0442\u0440\u044b), \u0430 \u043d\u0435 \u0434\u043b\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435;<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u0430:<\/strong> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 URL, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u0433\u0434\u0435 \u043e\u043d \u0438 \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u0430\u0437\u0434\u0435\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043b\u044f SPA \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d History Mode<\/strong> (\u0443\u0431\u0438\u0440\u0430\u0435\u0442 <code>#<\/code> \u0438\u0437 URL), \u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e (\u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c <code>index.html<\/code> \u043d\u0430 \u0432\u0441\u0435 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0443\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434).<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0442\u0440\u0430\u0442\u0438\u0432 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 URL-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043d\u043e \u0438 \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0435 \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u043b\u044f \u0435\u0433\u043e \u043b\u0435\u0433\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.<\/p>\n<h4>\u0422\u0430\u043a\u0436\u0435 \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e:<\/h4>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/937656\/\" rel=\"noopener noreferrer nofollow\">20 \u0447\u0430\u0441\u0442\u044b\u0445 \u0430\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 \u0432 React \u0438 \u043a\u0430\u043a \u0438\u0445 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c: \u043a\u0440\u0430\u0442\u043a\u043e, \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0431\u0435\u0437 \u043c\u0438\u0444\u043e\u0432<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/943918\/\"> https:\/\/habr.com\/ru\/articles\/943918\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u0435\u043a\u0441\u0435\u0439 \u0424\u043e\u043c\u0438\u043d, \u044f Technical Lead \u0432\u043e Frontend \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <strong>Devs Universe<\/strong>. \u0412 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u044f \u0447\u0430\u0441\u0442\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0441\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 URL-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0430 \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430, SEO \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0430\u043d\u0430\u0442\u043e\u043c\u0438\u044e URL \u0438 \u0434\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e.<\/p>\n<p><strong>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 <\/strong><\/p>\n<ol>\n<li>\n<p><a href=\"#anatomiya-url-iz-chego-on-sostoit\" rel=\"noopener noreferrer nofollow\"><strong>\u0410\u043d\u0430\u0442\u043e\u043c\u0438\u044f URL: \u0438\u0437 \u0447\u0435\u0433\u043e \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442?<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#ierarhiya-i-struktura-pravilnoe-nazvanie-url\" rel=\"noopener noreferrer nofollow\"><strong>\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 (\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 URL)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#proektirovanie-routinga-marshrutizaciya\" rel=\"noopener noreferrer nofollow\"><strong>\u041f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 (\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#query-parameters-parametry-stroki-zaprosa\" rel=\"noopener noreferrer nofollow\"><strong>Query Parameters (\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#hash-fragment\" rel=\"noopener noreferrer nofollow\"><strong>Hash (\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442)<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#svodnaya-tablica-chto-i-kogda-ispolzovat\" rel=\"noopener noreferrer nofollow\"><strong>\u0421\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430: \u0447\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#kak-poluchit-chasti-url-v-javascript\" rel=\"noopener noreferrer nofollow\"><strong>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u0438 URL \u0432 JavaScript?<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#rabota-s-neidealnymi-query-parametrami\" rel=\"noopener noreferrer nofollow\"><strong>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 &#171;\u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438&#187; Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#cheklist-pravilnogo-proektirovaniya-url\" rel=\"noopener noreferrer nofollow\"><strong>\u0427\u0435\u043a\u043b\u0438\u0441\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f URL<\/strong><\/a><\/p>\n<\/li>\n<\/ol>\n<p>\u00a0<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e\u0439 URL \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u043a\u0440\u0438\u0432\u0430\u044f \u0432\u044b\u0432\u0435\u0441\u043a\u0430 \u043d\u0430 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435: \u043e\u043d \u043f\u0443\u0442\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \u0438 \u043f\u043e\u0440\u0442\u0438\u0442 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435 \u043e \u0432\u0441\u0435\u043c \u0441\u0430\u0439\u0442\u0435. \u0425\u043e\u0440\u043e\u0448\u0438\u0439 URL, \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u043f\u043e\u043d\u044f\u0442\u0435\u043d, \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c \u0438 \u043d\u0435\u0441\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<p><a class=\"anchor\" name=\"anatomiya-url-iz-chego-on-sostoit\" id=\"anatomiya-url-iz-chego-on-sostoit\"><\/a><\/p>\n<h3>\u0410\u043d\u0430\u0442\u043e\u043c\u0438\u044f URL: \u0438\u0437 \u0447\u0435\u0433\u043e \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442?<\/h3>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f, \u043a\u0430\u043a URL \u0443\u0441\u0442\u0440\u043e\u0435\u043d. \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440:<br \/> <code>https:\/\/www.example.com:8080\/catalog\/search?q=watch&amp;sort=price#product-list<\/code><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"center\"><strong>\u0427\u0430\u0441\u0442\u044c URL<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"center\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">https:<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 (http, https, ftp)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u0414\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">www.example.com<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0410\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. www \u2014 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d, example \u2014 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f, .com \u2014 \u0434\u043e\u043c\u0435\u043d \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f (TLD)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u041f\u043e\u0440\u0442<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">:8080<\/p>\n<\/td>\n<td>\n<p align=\"left\">&#171;\u0414\u0432\u0435\u0440\u044c&#187; \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f HTTP \u2014 80, \u0434\u043b\u044f HTTPS \u2014 443 (\u0432 URL \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u041f\u0443\u0442\u044c (Path)<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">\/catalog\/search<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u0442\u044c \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u041e\u0441\u043d\u043e\u0432\u0430 \u0434\u043b\u044f \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">?q=watch&amp;sort=price<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 ?. \u041f\u0430\u0440\u0430 \u043a\u043b\u044e\u0447=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 &amp;. \u041d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b (\u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u043f\u043e\u0438\u0441\u043a, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"220\" width=\"220\">\n<p align=\"left\">\u0425\u044d\u0448 (\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442)<\/p>\n<\/td>\n<td data-colwidth=\"233\" width=\"233\">\n<p align=\"left\">#product-list<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 #. \u042f\u043a\u043e\u0440\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441 id=&#187;product-list&#187;. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<hr\/>\n<p><a class=\"anchor\" name=\"ierarhiya-i-struktura-pravilnoe-nazvanie-url\" id=\"ierarhiya-i-struktura-pravilnoe-nazvanie-url\"><\/a><\/p>\n<h3>\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 (\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 URL)<\/h3>\n<p>URL \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u0430\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0431\u044b\u0442\u044c \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c.<\/p>\n<h4>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b:<\/h4>\n<ul>\n<li>\n<p><strong>\u0427\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0441\u0442\u044c (Readable):<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043b\u043e\u0432\u0430, \u0430 \u043d\u0435 ID \u0442\u0430\u043c, \u0433\u0434\u0435 \u044d\u0442\u043e \u0443\u043c\u0435\u0441\u0442\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>\/p\/12345<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u0425\u043e\u0440\u043e\u0448\u043e:<\/strong> <code>\/products\/modern-wristwatch<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u043b\u0438\u0447\u043d\u043e:<\/strong> <code>\/catalog\/watches\/wrist\/modern-wristwatch<\/code> (\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u043d\u043e\u0441\u0442\u044c (Hierarchical):<\/strong> \u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043f\u0443\u0442\u044c \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u043a \u0447\u0430\u0441\u0442\u043d\u043e\u043c\u0443, \u043a\u0430\u043a \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435:<\/p>\n<ul>\n<li>\n<p><code>\/{section}\/{category}\/{subcategory}\/{item}<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: <code>\/blog\/javascript\/frameworks\/vue-3-composition-api<\/code> \u2014 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0433\u0434\u0435 \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c\u0441\u044f.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e:<\/strong> \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u043b\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432-\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439:<\/p>\n<ul>\n<li>\n<p><code>\/users\/<\/code> (\u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439), <code>\/users\/annasmith<\/code> (\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c);<\/p>\n<\/li>\n<li>\n<p>\u042d\u0442\u043e \u043d\u0435 \u0441\u0442\u0440\u043e\u0433\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043d\u0432\u0435\u043d\u0446\u0438\u044f \u0432 RESTful API.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e\u0441\u0442\u044c:<\/strong> \u043d\u0435 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0439\u0442\u0435 \u043f\u0443\u0442\u044c \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438. \u0418\u0437\u0431\u0435\u0433\u0430\u0439\u0442\u0435 \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>\/site.com\/blog\/posts\/article-about-how-to-build-a-website-in-2024\/<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u0425\u043e\u0440\u043e\u0448\u043e:<\/strong> <code>\/blog\/website-development-2024<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u0441\u0442\u043e\u044f\u043d\u0441\u0442\u0432\u043e (Persistence):<\/strong> URL \u2014 \u044d\u0442\u043e \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u0435. Once published, forever available. \u041d\u0435 \u043c\u0435\u043d\u044f\u0439\u0442\u0435 URL \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0431\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0441\u043e \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 (301 Moved Permanently). \u0418\u043d\u0430\u0447\u0435 \u0432\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 SEO-\u0432\u0435\u0441.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0431\u0443\u043a\u0432:<\/strong> \u0435\u0434\u0438\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435! \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <strong>\u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong>. \u0421\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b \u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 (<code>Website.com\/PAGE<\/code> \u0438 <code>website.com\/page<\/code> \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430), \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0430\u043c 404.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438:<\/strong> \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u0443\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <strong>\u0434\u0435\u0444\u0438\u0441\u044b<\/strong> (<code>-<\/code>):<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>modern_wristwatch<\/code> (\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u043e\u0445\u043e \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0445 \u0441\u0441\u044b\u043b\u043a\u0430\u0445);<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043b\u043e\u0445\u043e:<\/strong> <code>modern%20wristwatch<\/code> (\u043f\u0440\u043e\u0431\u0435\u043b, \u0432\u0438\u0434\u0435\u043d \u043a\u0430\u043a %20);<\/p>\n<\/li>\n<li>\n<p><strong>\u0425\u043e\u0440\u043e\u0448\u043e:<\/strong> <code>modern-wristwatch<\/code> (\u0434\u0435\u0444\u0438\u0441, \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043b\u0435\u0433\u043a\u043e \u0438 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u0435\u043d \u0434\u043b\u044f SEO).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr\/>\n<p><a class=\"anchor\" name=\"proektirovanie-routinga-marshrutizaciya\" id=\"proektirovanie-routinga-marshrutizaciya\"><\/a><\/p>\n<h3>\u041f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 (\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f)<\/h3>\n<p>\u0420\u043e\u0443\u0442\u0438\u043d\u0433 \u2014 \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 URL \u0441 \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430.<\/p>\n<h4>\u041f\u043e\u0434\u0445\u043e\u0434\u044b:<\/h4>\n<ol>\n<li>\n<p><strong>\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 (Traditional):<\/strong> \u043a\u0430\u0436\u0434\u044b\u0439 URL \u0432\u0435\u0434\u0435\u0442 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong> \u043f\u0440\u043e\u0449\u0435 \u0434\u043b\u044f SEO (HTML \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0441\u0440\u0430\u0437\u0443), \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 JavaScript \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435;<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong> \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 (SPA &#8212; Single Page Application):<\/strong> \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0434\u0430\u0435\u0442 \u043e\u0434\u0438\u043d HTML-\u0444\u0430\u0439\u043b, \u0430 JavaScript \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, React Router, Vue Router) \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 URL \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 &#171;\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b&#187; (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b) \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438, \u0431\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong> \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 &#171;\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438&#187;, \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u0430\u043a \u0443 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong> \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441 SEO (\u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SSR &#8212; Server-Side Rendering), \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u043b\u044c\u0448\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>\u041f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u043e\u0443\u0442\u043e\u0432<\/h4>\n<ul>\n<li>\n<p><strong>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0443\u0442\u0438:<\/strong> <code>\/about<\/code>, <code>\/contact<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/strong> \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430:<\/p>\n<ul>\n<li>\n<p>\u041f\u0443\u0442\u044c: <code>\/users\/:userId<\/code> \u0438\u043b\u0438 <code>\/products\/:productId<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: URL <code>\/users\/annasmith<\/code> -&gt; \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>userId = \"annasmith\"<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0440\u043e\u0443\u0442\u044b (Nested Routes):<\/strong> \u041e\u0442\u0440\u0430\u0436\u0430\u044e\u0442 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u0432 UI:<\/p>\n<ul>\n<li>\n<p>\u0420\u043e\u0443\u0442: <code>\/settings\/:tab<\/code> (e.g., <code>\/settings\/profile<\/code>, <code>\/settings\/security<\/code>);<\/p>\n<\/li>\n<li>\n<p>\u0420\u043e\u0443\u0442: <code>\/dashboard\/analytics\/overview<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr\/>\n<p><a class=\"anchor\" name=\"query-parameters-parametry-stroki-zaprosa\" id=\"query-parameters-parametry-stroki-zaprosa\"><\/a><\/p>\n<h3>Query Parameters (\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430)<\/h3>\n<p>\u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044c URL, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 <code>?<\/code> \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u0430\u0440 <code>\u043a\u043b\u044e\u0447=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/code>, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 <code>&amp;<\/code>.<br \/> <code>https:\/\/example.com\/products?category=watches&amp;sort=price\\_asc&amp;page=2<\/code><\/p>\n<h4>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h4>\n<ul>\n<li>\n<p><strong>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u043f\u043e\u0438\u0441\u043a:<\/strong><\/p>\n<ul>\n<li>\n<p><code>?category=electronics&amp;price_min=100&amp;price_max=500<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>?sort=date_desc<\/code> (\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e \u0434\u0430\u0442\u0435, \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e);<\/p>\n<\/li>\n<li>\n<p><code>?q=search+query<\/code> (\u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f:<\/strong> <code>?page=3&amp;limit=25<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f:<\/strong> <code>?view=grid<\/code> \u0438\u043b\u0438 <code>?view=list<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 (UTM-\u043c\u0435\u0442\u043a\u0438):<\/strong> <code>?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=promo<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432 \u043f\u0443\u0442\u0438:<\/strong> \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b \u0434\u043b\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 <code>\/products<\/code> \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u2014 \u044d\u0442\u043e \u0432\u0441\u0435 \u0442\u0430 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 <code>\/products<\/code>, \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0440\u0430\u0437\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u0430\u0436\u043d\u043e:<\/strong> Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a\u043e\u0439 HTML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432\u0435\u0440\u043d\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438). \u041e\u043d\u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"hash-fragment\" id=\"hash-fragment\"><\/a><\/p>\n<h3>Hash (\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442)<\/h3>\n<p>\u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044c URL, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <code>#<\/code>.<br \/> <code>https:\/\/example.com\/documentation#chapter-2<\/code><\/p>\n<h4>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h4>\n<ol>\n<li>\n<p><strong>\u042f\u043a\u043e\u0440\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 (\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435):<\/strong> \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441 <code>id=\"chapter-2\"<\/code>. \u042d\u0442\u043e \u0447\u0438\u0441\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f, \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0445\u044d\u0448 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 \u0432 \u0441\u0442\u0430\u0440\u044b\u0445 SPA (History API):<\/strong> \u0420\u0430\u043d\u044c\u0448\u0435, \u0434\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f History API, \u0445\u044d\u0448 (<code>#<\/code> \u0438 <code>#!<\/code>) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 \u0432 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0445\u044d\u0448\u0430 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: <code>example.com\/#\/dashboard<\/code>, <code>example.com\/#\/users<\/code>;<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.<\/strong> \u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <strong>History Mode<\/strong> (\u0440\u043e\u0443\u0442\u044b \u0431\u0435\u0437 <code>#<\/code>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 URL \u0432\u0438\u0434\u0430 <code>example.com\/dashboard<\/code>. \u042d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr\/>\n<p><a class=\"anchor\" name=\"svodnaya-tablica-chto-i-kogda-ispolzovat\" id=\"svodnaya-tablica-chto-i-kogda-ispolzovat\"><\/a><\/p>\n<h3>\u0421\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430: \u0447\u0442\u043e \u0438 \u043a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 URL<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440?<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041f\u0443\u0442\u044c (Path)<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\/catalog\/watches\/racer-x<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u00a0<strong>\u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/strong>\u00a0\u0438\u043b\u0438\u00a0<strong>\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/strong>. \u041e\u0441\u043d\u043e\u0432\u0430 SEO \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0430\u0439\u0442\u0430.<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0414\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>?color=blue&amp;size=42<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043b\u044f\u00a0<strong>\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f<\/strong>\u00a0\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b: \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u043f\u043e\u0438\u0441\u043a, \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f. \u041d\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0414\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0425\u044d\u0448 (Fragment)<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>#specifications<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043b\u044f\u00a0<strong>\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439<\/strong>\u00a0\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. (\u0423\u0441\u0442\u0430\u0440\u0435\u043b \u0434\u043b\u044f \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 \u0432 SPA).<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0435\u0442<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<hr\/>\n<p><a class=\"anchor\" name=\"kak-poluchit-chasti-url-v-javascript\" id=\"kak-poluchit-chasti-url-v-javascript\"><\/a><\/p>\n<h3>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u0438 URL \u0432 JavaScript?<\/h3>\n<p>\u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0432\u0435\u0441\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 URL \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445 <code>window.location<\/code> \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e <code>location<\/code>. \u042d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u0447\u0430\u0441\u0442\u0438 URL \u0432 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 URL \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430:<\/strong><br \/> <code>https:\/\/www.example.com:8080\/catalog\/search?q=watch&amp;sort=price#product-list<\/code><\/p>\n<pre><code class=\"javascript\">\/\/ \u041e\u0431\u044a\u0435\u043a\u0442 location \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 console.log(location); \/\/ \u0412\u044b\u0432\u0435\u0434\u0435\u0442: \/\/ { \/\/   href: \"https:\/\/www.example.com:8080\/catalog\/search?q=watch&amp;sort=price#product-list\", \/\/   protocol: \"https:\", \/\/   hostname: \"www.example.com\", \/\/   port: \"8080\", \/\/   host: \"www.example.com:8080\", \/\/ hostname + port \/\/   pathname: \"\/catalog\/search\", \/\/   search: \"?q=watch&amp;sort=price\", \/\/   hash: \"#product-list\" \/\/ }  \/\/ 1. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0435\u0441\u044c URL const fullUrl = location.href;  \/\/ 2. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0443\u0442\u044c (Path) const path = location.pathname; \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"\/catalog\/search\"  \/\/ 3. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 const searchString = location.search; \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"?q=watch&amp;sort=price\"  \/\/ 4. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0445\u044d\u0448 const hash = location.hash; \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"#product-list\"  \/\/ 5. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \/\/ \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 const urlParams = new URLSearchParams(location.search); const searchQuery = urlParams.get('q'); \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"watch\" const sortType = urlParams.get('sort'); \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: \"price\" const nonExistentParam = urlParams.get('page'); \/\/ \u0412\u0435\u0440\u043d\u0451\u0442: null  \/\/ \u041f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b for (let [key, value] of urlParams) {   console.log(`${key}: ${value}`); } \/\/ \u0412\u044b\u0432\u0435\u0434\u0435\u0442: \/\/ q: watch \/\/ sort: price  \/\/ 6. \u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 URL \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \/\/ \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u0441 query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 const newParams = new URLSearchParams(); newParams.append('category', 'electronics'); newParams.append('page', '2'); const newUrl = `${location.origin}\/search?${newParams.toString()}`; \/\/ newUrl \u0431\u0443\u0434\u0435\u0442: \"https:\/\/www.example.com:8080\/search?category=electronics&amp;page=2\" <\/code><\/pre>\n<hr\/>\n<p><a class=\"anchor\" name=\"rabota-s-neidealnymi-query-parametrami\" id=\"rabota-s-neidealnymi-query-parametrami\"><\/a><\/p>\n<h3>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 &#171;\u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438&#187; Query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/h3>\n<p>\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432\u044b \u0447\u0430\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 query-\u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u0443 <code>\u043a\u043b\u044e\u0447=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/code>. JavaScript-\u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0441\u043b\u0443\u0447\u0430\u0438.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 URL \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<br \/> <code>https:\/\/example.com\/search?q=watch&amp;sort=&amp;page=2&amp;filter=size&amp;filter=color&amp;flag&amp;&amp;invalid\\_value=#test<\/code><\/p>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p><code>q=watch<\/code> &#8212; \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440;<\/p>\n<\/li>\n<li>\n<p><code>sort=<\/code> &#8212; \u043a\u043b\u044e\u0447 \u0435\u0441\u0442\u044c, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0443\u0441\u0442\u043e\u0435;<\/p>\n<\/li>\n<li>\n<p><code>page=2<\/code> &#8212; \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440;<\/p>\n<\/li>\n<li>\n<p><code>filter=size&amp;filter=color<\/code> &#8212; \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c;<\/p>\n<\/li>\n<li>\n<p><code>flag<\/code> &#8212; \u043a\u043b\u044e\u0447 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p><code>&amp;invalid_value=<\/code> &#8212; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043a\u043b\u044e\u0447\u0430 (\u0440\u0435\u0434\u043a\u043e, \u043d\u043e \u0431\u044b\u0432\u0430\u0435\u0442);<\/p>\n<\/li>\n<li>\n<p><code>#test<\/code> &#8212; \u0445\u044d\u0448.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u0430\u043a \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 URLSearchParams?<\/h4>\n<pre><code class=\"javascript\">\/\/ \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441 \u0442\u0430\u043a\u0438\u043c URL const urlParams = new URLSearchParams('?q=watch&amp;sort=&amp;page=2&amp;filter=size&amp;filter=color&amp;flag&amp;&amp;invalid_value=');  \/\/ 1. \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 console.log(urlParams.get('q')); \/\/ \"watch\"  \/\/ 2. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441 \u043f\u0443\u0441\u0442\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c console.log(urlParams.get('sort')); \/\/ \"\" (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430,<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-473945","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/473945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=473945"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/473945\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=473945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=473945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=473945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}