More baseurl handling, stripping end slash on baseurl