Skip to content

Commit

Permalink
TEST: Single redirect to home.account.gov.uk rather than session start.
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Jun 27, 2023
1 parent be7b41d commit 95dd10f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ class SessionsController < ApplicationController
before_action :set_no_cache_headers

def create
redirect_path = http_referer_path
redirect_path = nil unless is_valid_redirect_path? redirect_path
# redirect_path = http_referer_path
# redirect_path = nil unless is_valid_redirect_path? redirect_path

redirect_with_analytics GdsApi.account_api.get_sign_in_url(redirect_path:)["auth_uri"]
# redirect_with_analytics GdsApi.account_api.get_sign_in_url(redirect_path:)["auth_uri"]
redirect_with_analytics GovukPersonalisation::Urls.your_account
end

def callback
Expand Down

0 comments on commit 95dd10f

Please sign in to comment.