HOw do i get this base path?
http://localhost:1313/
my code right now is
var getUrl = window.location;
var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
which gives me
http://localhost:1313/manual
i need to remove "manual"