SyntaxFix
Write A Post
Hire A Developer
Questions
You can do a relative redirect:
window.location.href = '../'; //one level up
or
window.location.href = '/path'; //relative to domain