sunaku / dasht

💁 Search API docs offline, in terminal or browser
https://sunaku.github.io/dasht/man
827 stars 26 forks source link

Server links not working on OS X #12

Closed smutch closed 8 years ago

smutch commented 8 years ago

I installed dasht through homebrew, however, I find that the dasht-server links do nothing. For example, the link for numpy.add points to file:///Users/myusername/.local/share/dasht/docsets/NumPy.docset/Contents/Resources/Documents/doc/reference/generated/numpy.add.html#//apple_ref/Method/numpy.add. If I manually remove everything after and including the # from this then I am sent to the correct page.

sunaku commented 8 years ago

What browser are you using? It works correctly for me in both w3m and Firefox 46.

smutch commented 8 years ago

I've tried the most recent versions of both Chrome and Safari. Both showed the same problem for me, but w3m seems to work fine...

sunaku commented 8 years ago

Ah then I suspect the problem is this: Webkit browsers don't follow file links. So it wasn't the removal of the URI fragment that made the page load for you in those browsers, but rather it was the fact that you manually submitted a file URL to those browsers that made the difference. :neckbeard:

smutch commented 8 years ago

Ah. That make sense. 😃 My apologies for not noticing that in the documentation.

Thanks for the quick follow up and the great tool!