Fix cleanUpTrailingSlash() to preserve trailing slash in URLs like "desktop:/"
The old implementation removed the trailing slash from URLs like "desktop:/", which broke their semantics. This patch preserves it when necessary.
The old implementation removed the trailing slash from URLs like "desktop:/", which broke their semantics. This patch preserves it when necessary.