diff --git a/ReText/window.py b/ReText/window.py
index <HASH>..<HASH> 100644
--- a/ReText/window.py
+++ b/ReText/window.py
@@ -409,6 +409,8 @@ class ReTextWindow(QMainWindow):
 		urlstr = url.toString()
 		if urlstr.startswith('file://') or ':/' not in urlstr:
 			self.previewBoxes[self.ind].load(url)
+		elif urlstr.startswith('#'):
+			self.previewBoxes[self.ind].page().mainFrame().scrollToAnchor(urlstr[1:])
 		elif urlstr.startswith('about:blank#'):
 			self.previewBoxes[self.ind].page().mainFrame().scrollToAnchor(urlstr[12:])
 		else:
Extend linkClicked() anchor handling to work with Qt 5

(cherry picked from commit bb<I>f<I>f7aff<I>e<I>f<I>c<I>bb<I>d<I>a0)