fall back to use url as is

This commit is contained in:
j 2023-06-26 10:48:38 +05:30
parent 94fc4fbe7a
commit 69fae04bb8

View file

@ -53,7 +53,10 @@ def embed(request, id):
}) })
def redirect_url(request, url): def redirect_url(request, url):
url = base64.decodebytes(url.encode()).decode() try:
url = base64.decodebytes(url.encode()).decode()
except:
pass
if settings.CONFIG['site'].get('sendReferrer', False): if settings.CONFIG['site'].get('sendReferrer', False):
return redirect(url) return redirect(url)
else: else: