Handle remote and local tabs differently.
Correct links with two slashes (//) appearing.