Fixed for relative url.

This commit is contained in:
Antoni Boucher 2015-05-31 12:13:37 -04:00
parent 87e9888167
commit 1cd64481de

View File

@ -1014,7 +1014,8 @@ class CommandDispatcher:
url = selected_element.attrib['href']
except KeyError:
raise cmdexc.CommandError('Anchor elment without href!')
self._open(QUrl(url), tab)
url = self._current_url().resolved(QUrl(url))
self._open(url, tab)
@cmdutils.register(instance='command-dispatcher', name='inspector',
scope='window')