[BUGFIX] URL without base runs into a redirect loop