diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 096a324d2..d0627de92 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -636,7 +636,6 @@ class CommandDispatcher: cmdutils.check_exclusive((tab, bg, window), 'tbw') widget = self._current_widget() url = self._current_url() - url = url.adjusted(QUrl.RemoveFragment | QUrl.RemoveQuery) handlers = { 'prev': functools.partial(navigate.prevnext, prev=True), @@ -654,6 +653,8 @@ class CommandDispatcher: handler(browsertab=widget, win_id=self._win_id, baseurl=url, tab=tab, background=bg, window=window) elif where in ['up', 'increment', 'decrement']: + if where is 'up': + url = url.adjusted(QUrl.RemoveFragment | QUrl.RemoveQuery) new_url = handlers[where](url, count) self._open(new_url, tab, bg, window, related=True) else: # pragma: no cover