Page 1 of 1

Extra Slashes in URL Hyperlinks

Posted: Fri Oct 28, 2005 1:51 pm
by Michel
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

Posted: Wed Nov 09, 2005 1:08 pm
by Michel
So, Sergey, any thoughts on this? Before it scrolls off the first page of the forum... :wink:
Thanks,
Michel

Posted: Wed Nov 09, 2005 5:20 pm
by DavidRM
This might be related to the problem I saw with pulling images with root-based source paths:

http://www.trichview.com/forums/viewtop ... highlight=

-David

Posted: Wed Nov 09, 2005 5:51 pm
by Michel
That link to topic 209 isn't working for me (and not because of double-slashes!). It's actually rather strange: your profiles says "8 posts" but search only finds 6. phpBB bug? Or was your thread lost/deleted?
Michel

Posted: Wed Nov 09, 2005 8:49 pm
by Sergey Tkachenko
It will be fixed in one of next updates.

Michel, this link points to the article in the protected forum for registered TRichView users. If you are a registered user, send me a private message or e-mail (include some info identifying you as a registered user, for example the e-mail address which was used in the your order)

Posted: Wed Nov 09, 2005 9:05 pm
by Michel
Cool, Sergey, thank you!
Michel

Posted: Thu Nov 10, 2005 10:20 pm
by Michel
Sergey, I just stumbled upon the InternetCombineUrl() Win32 API function. I don't know if you are already using it or know of it, but thought I'd mention it (could prove useful/convenient).
Best regards,
Michel