qutebrowser/qutebrowser/browser
Daniel Schadt a77e085952 dirbrowser: fix navigation on windows
Issue #1334

The problem was that there were too few slashes. On Linux, absolute
paths start with /, so

    file:// + /home

gives file:///home, which is a valid path. On windows however, absolute
paths start with a drive letter, so

    file:// + C:/Users

gives file://C:/Users, which is parsed as "host C, path Users", which is
why it could be written as file://c/Users (strip out the empty "port"),
giving us an invalid path.

The solution is to add the third slash in the template, and strip the
redundant slash on unix systems.

Additionally, this fixes a bug where navigating from '/home/' to the
parent directory would give '/home' instead of '/'
2016-03-28 23:08:54 +02:00
..
network dirbrowser: fix navigation on windows 2016-03-28 23:08:54 +02:00
__init__.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
adblock.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
cache.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
commands.py Update docs 2016-03-25 11:10:38 +01:00
cookies.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
downloads.py Un-deprecate :download-remove --all 2016-03-14 19:11:41 +01:00
downloadview.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
hints.py hints: Log the used hint chars 2016-02-18 20:46:15 +01:00
history.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
http.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
inspector.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
mhtml.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
pdfjs.py pdfjs: fix misplaced comma 2016-02-08 06:12:24 +01:00
rfc6266.py flake8: Add flake8-pep3101 plugin. 2016-01-22 19:40:10 +01:00
signalfilter.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
tabhistory.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
urlmarks.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
webelem.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
webpage.py Fix pdfjs error page after jinja.render changes 2016-03-27 12:53:53 +02:00
webview.py Adjust copyright years. 2016-01-04 07:12:39 +01:00