diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 0a03df1c8..c97db8464 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -82,10 +82,8 @@ class HintContext: """Get the arguments, with {hint-url} replaced by the given URL.""" args = [] for arg in self.args: - if arg == '{hint-url}': - args.append(urlstr) - else: - args.append(arg) + arg = arg.replace('{hint-url}', urlstr) + args.append(arg) return args