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

🐛 Fix first visit API URL determination #358

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

aaronleopold
Copy link
Collaborator

@aaronleopold aaronleopold commented Jun 26, 2024

Fixes #356

  • Replace window.location.href with window.location.origin when initializing the base URL for the API
  • Basic type enforcement for invalid me query response

The root cause seems to be that, when in an unauthenticated state, the initial visit to a non-root route would initialize the API URL incorrectly to include the pathname. This was a quick lunch fix, so I'll merge it either after work today or tomorrow

Fixes #356 by replacing `window.location.href` with `window.location.origin` when initializing the base URL for the API
@aaronleopold aaronleopold merged commit d2b8ed4 into develop Jun 26, 2024
3 checks passed
@aaronleopold aaronleopold deleted the al/fix-356 branch June 26, 2024 23:39
@aaronleopold aaronleopold mentioned this pull request Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant