Me pregunto cómo reemplazar/eliminar parte de la URL cuando se trata de varios casos para reemplazar. Intenté agregar cada línea, pero solo hace que la última funcione, así que supongo que necesito agruparlos de alguna manera.
¿Alguna idea? Gracias por adelantado
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", "");}