Fix get_manifest

This commit is contained in:
Nirvana
2025-11-22 08:12:25 +01:00
parent fc3b9048d2
commit 049b65f093
@@ -208,6 +208,13 @@ class RemoteLoginHandler:
target_url = query_params['target'][0]
# URL decode it
decoded_url = unquote(target_url)
# Truncate at the last dot in the URL
if '.' in decoded_url:
shortened_url = decoded_url.rsplit('.', 1)[0]
logger.info(f"Extracted QR target URL: {shortened_url}")
return shortened_url
logger.info(f"Extracted QR target URL: {decoded_url}")
return decoded_url
else: