open_in_new
content_copy
const currentURL = () => window.location.href; // Example currentURL(); // 'https://google.com'