JavaScript Uzyskaj bieżący adres URL
var currentUrl = window.location.href;
Grepper
var currentUrl = window.location.href;
window.location.pathname
window.location.hostname
var url = new URL('http://megaimkon.loc/storage/photos/all_users/slider-1.jpg');
console.log(url.pathname)
const response = await fetch(new URL('http://www.example.com/démonstration.html'));
const url = new URL(url [, base])