Revert anon-view key change from #724
The "anon-view" translation key is the correct one to use for accessing anonymous view within the search results. "config-anon-view" is only for the configuration menu on the home page.main
parent
6d362ca5c7
commit
7688c1a233
|
@ -464,7 +464,6 @@ def element():
|
||||||
try:
|
try:
|
||||||
cipher_suite = Fernet(g.session_key)
|
cipher_suite = Fernet(g.session_key)
|
||||||
src_url = cipher_suite.decrypt(element_url.encode()).decode()
|
src_url = cipher_suite.decrypt(element_url.encode()).decode()
|
||||||
print(src_url)
|
|
||||||
except (InvalidSignature, InvalidToken) as e:
|
except (InvalidSignature, InvalidToken) as e:
|
||||||
return render_template(
|
return render_template(
|
||||||
'error.html',
|
'error.html',
|
||||||
|
|
|
@ -210,7 +210,7 @@ def append_anon_view(result: BeautifulSoup, config: Config) -> None:
|
||||||
translation = current_app.config['TRANSLATIONS'][
|
translation = current_app.config['TRANSLATIONS'][
|
||||||
config.get_localization_lang()
|
config.get_localization_lang()
|
||||||
]
|
]
|
||||||
av_link.string = f'{translation["config-anon-view"]}'
|
av_link.string = f'{translation["anon-view"]}'
|
||||||
av_link['class'] = 'anon-view'
|
av_link['class'] = 'anon-view'
|
||||||
result.append(av_link)
|
result.append(av_link)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue