Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect base URL to start page when running locally #419

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading