Skip to content

London| SDC-Nov-2025| Ikenna Agulobi | Sprint 1 | bug/ log in issue#165

Open
ike-agu wants to merge 1 commit intoCodeYourFuture:mainfrom
ike-agu:bug/log-in-issue-only
Open

London| SDC-Nov-2025| Ikenna Agulobi | Sprint 1 | bug/ log in issue#165
ike-agu wants to merge 1 commit intoCodeYourFuture:mainfrom
ike-agu:bug/log-in-issue-only

Conversation

@ike-agu
Copy link

@ike-agu ike-agu commented Feb 25, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

This PR fixes the issue where logging in after logging out from a profile view resulted in a 501 "Server does not support this operation" error.

Root Cause

The login handler was attached to a button click event while the button is of type submit. This caused the browser to perform a default form submission (full page POST request) instead of being handled entirely within the Single Page Application.

Fix

Updated the login event listener to bind to the form’s submit event.

How to test the fix

Load the site
Log in as sample / sosecret
Navigate to a profile eg AS
Log out
Log back in
Profile now loads correctly ✅
No 501 error occurring again ✅

@ike-agu ike-agu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant