Extra Slashes in URL Hyperlinks

General TRichView support forum. Please post your questions here
Post Reply
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Extra Slashes in URL Hyperlinks

Post 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
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Post by Michel »

So, Sergey, any thoughts on this? Before it scrolls off the first page of the forum... :wink:
Thanks,
Michel
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

Post 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
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Post 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
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Post by Michel »

Cool, Sergey, thank you!
Michel
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Post 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
Post Reply