Set path when redirecting qute:* URLs

Fixes #2513
This commit is contained in:
Florian Bruhin 2017-04-08 23:04:10 +02:00
parent 28e6158a04
commit 778832a813
2 changed files with 9 additions and 0 deletions

View File

@ -145,6 +145,7 @@ def data_for_url(url):
new_url = QUrl()
new_url.setScheme('qute')
new_url.setHost(path)
new_url.setPath('/')
raise Redirect(new_url)
try:

View File

@ -308,6 +308,14 @@ Feature: Various utility commands.
- about:blank
- qute://help/index.html (active)
# https://github.com/qutebrowser/qutebrowser/issues/2513
Scenario: Opening link with qute:help
When I run :tab-only
And I open qute:help without waiting
And I wait for "Changing title for idx 0 to 'qutebrowser help'" in the log
And I hint with args "links normal" and follow a
Then qute://help/quickstart.html should be loaded
# :history
Scenario: :history without arguments