I am wondering how to replace/remove part of the url when it is multiple cases to replace. I tried adding each per line but it only makes the last one work so I assume I need to bundle them somehow?
Any thoughts? Thanks in advance
function showFullPage(obj) {
window.location.href = window.location.href.replace("?header=false", "");
window.location.href = window.location.href.replace("management?header=false", "");
window.location.href = window.location.href.replace("files?header=false", "");
// window.location.href = window.location.href.replace("events?header=false", "");
// window.location.href = window.location.href.replace("broadcasts?header=false", "");
// window.location.href = window.location.href.replace("network?header=false", "");
// window.location.href = window.location.href.replace("chat?header=false", "");
}