View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0026091||Lazarus||LCL||public||2014-04-29 08:55||2015-11-25 00:56|
|Reporter||Paul Norman||Assigned To||Bart Broersma|
|Status||resolved||Resolution||unable to reproduce|
|Platform||Windows||OS||Windows||OS Version||8.1 Pro|
|Product Version||Product Build||Typhon 4.8|
|Target Version||Fixed in Version|
|Summary||0026091: LCLIntf openurl() / LazHelpHTML - HtmlBrowserHelpViewer can not pass query string or anchor target|
|Description||There have been a number of forum postings over the years identifying that under Windows at least, at some point a few years ago, it became impossible to pass anything more than a straight .html document path; |
blah.html?someting=this&somethingElse=that or even just blah.html#goHere
All fail to fully work, blah.html will open ignoring the query string or anchor target.
THTMLBrowserHelpViewer.ShowNode passes the correct information to BrowserProcess (TProcessUTF8), BrowserProcess.CommandLine:=CommandLine;
But somewhere in BrowserProcess.Execute; query string and anchor target <filename->?... and <filename->#... all get lost.
This appears to happen under Windows where attempts to call BrowserProcess.execute are actually calling something like--
C:\WINDOWS\system32\rundll32.exe url.dll,FileProtocolHandler %s
Microsoft appear to have moved the goal posts on the use of url.dll, and this will not allow FPC anything after blah_blah.html file extension to be passed in %s.
LCLIntf openurl() and all kinds of direct system calls (apart from shellapi shellexecute() on Windows) all seem to also fail for parts of %s past the main file name.
|Steps To Reproduce||Covered in description.|
|Additional Information||This sort of thing does works...|
Workaround using a registry key, and more notes in ...
|Fixed in Revision|
OpenUrl() is perfectly capable of opening urls like:
'https://www.google.nl/#q="foo bar" + fpc' or
Note that OpenUL uses ShellExecute on Windows.
(Lazarus 1.3 r44839 FPC 2.6.4 i386-win32-win32/win64)
|Please provide a compilable sample program that demonstrates this problem.|
OpenURL apparently is NOT capable of opening file-based URLs with anchors; see issue 21637 (resolved not fixable).
As mentioned: it would be very nice to have an example program that demonstrates exactly what the issue is. The example in 21637 could perhaps be easily extended for this.
Re-open only if the issue is not resolved AND you attach a sample project (sources only) demonstrating the issue.
|2014-04-29 08:55||Paul Norman||New Issue|
|2014-04-29 11:01||Jonas Maebe||Project||FPC => Lazarus|
|2014-04-29 12:22||Bart Broersma||Note Added: 0074655|
||Note Added: 0078593|
||Status||new => feedback|
||Tag Attached: openurl|
||Relationship added||related to 0021659|
||Note Added: 0078622|
||Relationship added||related to 0021637|
|2015-11-24 18:11||Bart Broersma||Note Added: 0087552|
|2015-11-24 18:11||Bart Broersma||Status||feedback => resolved|
|2015-11-24 18:11||Bart Broersma||Resolution||open => unable to reproduce|
|2015-11-24 18:11||Bart Broersma||Assigned To||=> Bart Broersma|