Skip to content

Fix URL redirection from remote source#1523

Open
ihalaij1 wants to merge 1 commit into
apluslms:masterfrom
ihalaij1:fix-url-refirect
Open

Fix URL redirection from remote source#1523
ihalaij1 wants to merge 1 commit into
apluslms:masterfrom
ihalaij1:fix-url-refirect

Conversation

@ihalaij1
Copy link
Copy Markdown
Contributor

@ihalaij1 ihalaij1 commented Jun 2, 2026

Description

What?

Fix URL redirection from remote source

Fixes #1518

@ihalaij1 ihalaij1 self-assigned this Jun 2, 2026
@ihalaij1 ihalaij1 moved this from Todo to Under review in A+ sprints Jun 2, 2026
Comment thread exercise/views.py Fixed
Comment thread exercise/views.py Fixed
Comment thread userprofile/views.py Fixed
@ihalaij1 ihalaij1 force-pushed the fix-url-refirect branch from 734b4cd to 948c42a Compare June 2, 2026 08:56
Comment thread exercise/views.py

# Redirect back to the previous page
return redirect(request.headers.get('referer', '/'))
return redirect(get_redirect_url_from_referer(request))
Comment thread exercise/views.py

# Redirect back to the previous page
return redirect(request.headers.get('referer', '/'))
return redirect(get_redirect_url_from_referer(request))
Comment thread userprofile/views.py
pseudonymize = request.session.get("pseudonymize", False)
request.session["pseudonymize"] = not pseudonymize
return HttpResponseRedirect(request.headers.get("referer", "/"))
return HttpResponseRedirect(get_redirect_url_from_referer(request))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Under review

Development

Successfully merging this pull request may close these issues.

Fix URL redirection from remote source

2 participants