mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fix relative amp hrefs
This commit is contained in:
parent
68ce8a0d82
commit
df5a3418b4
@ -93,7 +93,7 @@ def html_to_amp(content):
|
||||
href, anchor = href.split('#')
|
||||
else:
|
||||
anchor = None
|
||||
href = f'{href}amp/'
|
||||
href = f'../{href}amp/'
|
||||
if anchor:
|
||||
href = f'{href}#{anchor}'
|
||||
tag.attrs['href'] = href
|
||||
|
Loading…
Reference in New Issue
Block a user