Как парсить URL в JavaScript: hostname, pathname, query, hashhttps://dmitripavlutin.com/parse-url-javascript/