URL Bug?


#1

URL::launchInDefaultBrowser() seems to strip the parameters from the URL.

For example:

URL u("http://science.slashdot.org/article.pl?sid=05/02/03/1826240&from=rss");
u.launchInDefaultBrowser(); 

Does not open the right link- it opens http://science.slashdot.org/article.pl

Here’s what I think the solution is:

[code]bool URL::launchInDefaultBrowser() const
{
String u (url); // should add here the “?” + getMangledParameter()

if (u.contains (T("@")) && ! u.contains (T(":")))
    u = T("mailto:") + u;

return juce_launchFile (u, String::empty);

}[/code]

Am I missing something? is there a way around this?


#2

ok, nice one - I’ll take a look at that…


#3