Reputation: 15091
window.location = "../employer/dashboard"
Need to append a base url so I wont have to add ../
Upvotes: 0
Views: 113
Reputation: 23113
This might do the trick (untested), but seems easy enough.
var root = location.protocol + "://" + location.host + ":" + location.port;
Upvotes: 0
Reputation: 119847
you might wanna check window.location and all it's properties, especially window.location.hostname
Upvotes: 1