Extra Slashes in URL Hyperlinks
Posted: Fri Oct 28, 2005 1:51 pm
Hi Sergey,
This is reproducible with your pre-compiled RVActionTest demo 1.9.8 (and earlier).
Open www.google.ca in IE (I haven't tried other browsers, not for this problem). Select either the entire page contents or just a few problematic links (about 2/3 of them are). Copy and paste the selection into RVActionTest or any TRichViewEdit. Some links end up with corrupted URLs, e.g., "About Google" now points to http://www.google.ca//intl/en/about.html (notice the doubled-up slash between the domain name and the path).
The specific URL I mentioned above goes like this in page source: <a href=/intl/en/about.html>About Google</a>, so I suspect that the problem happens when the fully-qualified URL is assembled from http://www.google.ca/ + /intl/en/about.html.
Hopefully, this is easy to fix (if I'm right). Thanks,
Michel
This is reproducible with your pre-compiled RVActionTest demo 1.9.8 (and earlier).
Open www.google.ca in IE (I haven't tried other browsers, not for this problem). Select either the entire page contents or just a few problematic links (about 2/3 of them are). Copy and paste the selection into RVActionTest or any TRichViewEdit. Some links end up with corrupted URLs, e.g., "About Google" now points to http://www.google.ca//intl/en/about.html (notice the doubled-up slash between the domain name and the path).
The specific URL I mentioned above goes like this in page source: <a href=/intl/en/about.html>About Google</a>, so I suspect that the problem happens when the fully-qualified URL is assembled from http://www.google.ca/ + /intl/en/about.html.
Hopefully, this is easy to fix (if I'm right). Thanks,
Michel