bigskysoftware / bigskysoftware/htmx

hx-boost Fails on External Redirect

Open
#2,442 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

Hey I've encountered an issue where if someone clicks an authed link e.g. `/profile`

They are potentially redirected out to google to perfrom OAuth with a 302.

I want the profile link to have an hx-boost in the case that the user is indeed logged in there is no full page refresh.

Obviously the boost will fail if the redirect to google happens because of CORS, theres no way around that.

I think the server needs some way of cancelling the boost via a header IF the user is redirected.

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by reproducing navigation from an authenticated /profile link with hx-boost when the server returns a 302 to Google for OAuth; done requires an agreed way for the server to cancel the boost before the external redirect.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
authentication, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.