JAVASCRIPT
js how to remove # from any url using js
//if the url is = https://example.com/#exampleid
var url = document.URL.split('#')[0]
//=> https://example.com/
//redirect it
location = url
remove # from url javascript
//Maybe you want to get relative_path
const RELATIVE_PATH = window.location.pathname;
alert(RELATIVE_PATH)
remove url from string javascript
var b = url.replace(/(?:https?|ftp)://[
S]+/g, '');
//=> and I said
javascript remove item from url
window.history.replaceState({}, document.title, "/" + "my-new-url.html");
javascript remove item from url
window.history.replaceState({}, document.title, "/" + "my-new-url.html");
javascript remove item from url
window.history.replaceState({}, document.title, "/" + "my-new-url.html");
js how to remove # from any url using js
//if the url is = https://example.com/#exampleid
var url = document.URL.split('#')[0]
//=> https://example.com/
//redirect it
location = url
javascript remove item from url
window.history.replaceState({}, document.title, "/" + "my-new-url.html");
javascript remove item from url
window.history.replaceState({}, document.title, "/" + "my-new-url.html");
javascript remove item from url
window.history.replaceState({}, document.title, "/" + "my-new-url.html");
javascript remove item from url
window.history.replaceState({}, document.title, "/" + "my-new-url.html");