added configurable baseurl if the app is not in root