Fixes URLs with no root path.