Skip to content

Commit

Permalink
Merge pull request #168 from communitiesuk/bau-update-redirect
Browse files Browse the repository at this point in the history
BAU: Update redirect
  • Loading branch information
gidsg authored Oct 7, 2024
2 parents 1cdd426 + ca11c46 commit 3201b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions fsd_utils/locale_selector/set_lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ def __init__(self, app):

@staticmethod
def select_language(locale):

response = make_response(
redirect(request.referrer or request.args.get("return_url") or "/", 302)
)
# TODO: Perform additional validation on referrer
response = make_response(redirect(request.referrer or "/", 302))
LanguageSelector.set_language_cookie(locale, response)

return response
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "funding-service-design-utils"

version = "5.1.0"
version = "5.1.1"

authors = [
{ name="MHCLG", email="FundingService@communities.gov.uk" },
Expand Down

0 comments on commit 3201b86

Please sign in to comment.