Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
window.location.href.replace replace/remove part of the url when it is multiple cases to replace

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", "");

}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!