diff --git a/qutebrowser/browser/qutescheme.py b/qutebrowser/browser/qutescheme.py index b35fb45f1..ccd976d0a 100644 --- a/qutebrowser/browser/qutescheme.py +++ b/qutebrowser/browser/qutescheme.py @@ -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: diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index 73950fc41..52c56b5c1 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -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