Skip to content

Commit

Permalink
Merge pull request #419 from UKGovernmentBEIS/local-dev-redirect
Browse files Browse the repository at this point in the history
Redirect base URL to start page when running locally
  • Loading branch information
jdgage authored Jan 2, 2025
2 parents 0d9e1a2 + 3c141f8 commit 00f7b9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions help_to_heat/frontdoor/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,10 @@ def _inner(func):


def redirect_to_homepage_view(request):
next_url = govuk_start_page_url
return redirect(next_url)
if settings.DEBUG:
return start_view(request)
else:
return redirect(govuk_start_page_url)


def start_view(request):
Expand Down
6 changes: 3 additions & 3 deletions help_to_heat/locale/cy/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-19 12:28+0000\n"
"POT-Creation-Date: 2024-12-31 16:01+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -677,11 +677,11 @@ msgstr "Fflat"
msgid "Maisonette"
msgstr "Fflat deulawr"

#: help_to_heat/frontdoor/views.py:594
#: help_to_heat/frontdoor/views.py:596
msgid "My energy supplier is not listed"
msgstr "Dyw fy nghyflenwr ynni i ddim wedi'i restru"

#: help_to_heat/frontdoor/views.py:707 help_to_heat/frontdoor/views.py:773
#: help_to_heat/frontdoor/views.py:709 help_to_heat/frontdoor/views.py:775
msgid "I cannot find my address, I want to enter it manually"
msgstr "Dwi'n methu gweld fy nghyfeiriad i. Hoffwn ei roi fy hunan."

Expand Down

0 comments on commit 00f7b9a

Please sign in to comment.