Remova # do URL JavaScript
//Maybe you want to get relative_path
const RELATIVE_PATH = window.location.pathname;
alert(RELATIVE_PATH)
Zarden
//Maybe you want to get relative_path
const RELATIVE_PATH = window.location.pathname;
alert(RELATIVE_PATH)
//if the url is = https://example.com/#exampleid
var url = document.URL.split('#')[0]
//=> https://example.com/
//redirect it
location = url
var b = url.replace(/(?:https?|ftp):\/\/[\n\S]+/g, '');
//=> and I said
//if the url is = https://example.com/#exampleid
var url = document.URL.split('#')[0]
//=> https://example.com/
//redirect it
location = url