diff --git a/webapp_timeline.py b/webapp_timeline.py
index e5a3511c6..73d213670 100644
--- a/webapp_timeline.py
+++ b/webapp_timeline.py
@@ -1048,7 +1048,7 @@ def html_timeline(default_timeline: str,
tl_str += text_mode_separator
first_post = ''
if last_post_id:
- first_post = ';firstpost=' + last_post_id
+ first_post = ';firstpost=' + last_post_id.replace('#', '--')
tl_str += \
'
\n' + \
'