helm-dash icon indicating copy to clipboard operation
helm-dash copied to clipboard

Invalidly quoted urls in docset

Open politza opened this issue 6 years ago • 4 comments

I downloaded the GLib docset and if I browse the help for e.g. the function g_hash_table_new, the browser is opened with a URL like

file:///long/boring/path/glib-Hash-Tables.html#//apple_ref/func/g%%5Fhash%%5Ftable%%5Fnew

Note the doubled percent characters. While eww does not seem to have problems with this, firefox just ignores the anchor and displays the page at the top, instead of scrolling to the desired function.

Is the docset broken ?

politza avatar Sep 25 '18 21:09 politza

I couldn't reproduce it as works fine here both using eww and browse-url in linux.

It looks like some double escaping as %%5f is the underscore character... Which OS as you using?

kidd avatar Sep 26 '18 13:09 kidd

Archlinux

The strange thing is, now I can't reproduce the doubled percents anymore. But now I noticed, that letting Emacs open the URL using xdg-open, it still ignores the anchor part of if. So choosing an explicit browse-url-browser-function seems to fix it for me.

I think we can close this for now, thanks.

politza avatar Sep 26 '18 15:09 politza

maybe xdg-open uses a shell inside, and '#' is interpreted as a comment.

...All those things are lots of fun....

kidd avatar Sep 26 '18 18:09 kidd

I never even use that program. I was just testing some packages with emacs -Q.

politza avatar Sep 26 '18 19:09 politza