Also add title to history for redirected URLs

This commit is contained in:
Florian Bruhin 2016-06-08 13:30:40 +02:00
parent 79e0aa2418
commit e1fd9fc408

View File

@ -154,7 +154,7 @@ class WebView(QWebView):
QUrl.UrlFormattingOption(0)):
# If the url of the page is different than the url of the link
# originally clicked, save them both.
history.add_url(self._orig_url.toDisplayString())
history.add_url(self._orig_url.toDisplayString(), self.title())
history.add_url(self.cur_url.toDisplayString(), self.title())
def _init_page(self):