global browserDoc class browserDoc(QTextBrowser): def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) self.setOpenLinks(False) self.anchorClicked.connect(self.cAnchorClicked) def cRenderHtml(self,html): self.clear() self.insertHtml(html.replace(" 0 and curUrlParsed["path"][-1] == "/": curUrlParsed["path"] = curUrlParsed["path"][:-1] urlParsed["path"] = curUrlParsed["path"] + "/" + url url = unparseUrl(urlParsed) browserWindow.cUrlBar.setText(url) browserWindow.cNavigate()