Skip to content

Commit

Permalink
Fix start url for app deep links with domain
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Mar 4, 2025
1 parent 87f043c commit 34f0d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fragdenstaat_de/theme/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import urllib.parse
from io import BytesIO

from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.http import JsonResponse
Expand Down Expand Up @@ -101,7 +102,7 @@ def scannerapp_postupload(request, message_type, message_pk):
in Scanner app
"""
message_type = "draft" if message_type == "draft" else "message"
app_url = f"/app/scanner/deep/{message_type}/{message_pk}/"
app_url = f"{settings.SITE_URL}/app/scanner/deep/{message_type}/{message_pk}/"

if request.user.can_autologin():
login_url = request.user.get_autologin_url()
Expand Down

0 comments on commit 34f0d84

Please sign in to comment.