diff --git a/pelican/tests/test_contents.py b/pelican/tests/test_contents.py
index af9b06bb..d2385905 100644
--- a/pelican/tests/test_contents.py
+++ b/pelican/tests/test_contents.py
@@ -331,6 +331,21 @@ class TestPage(LoggedTestCase):
'link'
)
+ # SITEURL with characters that should be escaped
+ args['content'] = (
+ 'A simple test, with a '
+ 'link'
+ )
+ content = Page(**args).get_content('http://notmyidea.org/'
+ '?app=blog&path=')
+ self.assertEqual(
+ content,
+ 'A simple test, with a '
+ 'link'
+ )
+
def test_intrasite_link_more(self):
# type does not take unicode in PY2 and bytes in PY3, which in
# combination with unicode literals leads to following insane line: