Skip to content

IS-10102 Make "initialUrl" required on LWA bootstrap#117

Open
luisgoncalves wants to merge 1 commit intointegration/IS-5161/login-web-appfrom
feature/dev/IS-10102-always-provide-initial-url
Open

IS-10102 Make "initialUrl" required on LWA bootstrap#117
luisgoncalves wants to merge 1 commit intointegration/IS-5161/login-web-appfrom
feature/dev/IS-10102-always-provide-initial-url

Conversation

@luisgoncalves
Copy link
Copy Markdown
Contributor

No description provided.

@luisgoncalves luisgoncalves force-pushed the feature/dev/IS-10102-always-provide-initial-url branch from 6c46304 to 63a2f69 Compare April 2, 2026 08:58
@luisgoncalves luisgoncalves marked this pull request as ready for review April 2, 2026 09:00
@luisgoncalves luisgoncalves requested a review from aleixsuau April 2, 2026 09:00
const initialUrl = configuration.initialUrl ?? window.location.href;
const initialStepLink: HaapiStepperLink = {
href: initialUrl,
href: configuration.initialUrl,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think passing the initialUrl in the HaapiStepperConfig would be more standard and clear.

Copy link
Copy Markdown
Contributor Author

@luisgoncalves luisgoncalves Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that HaapiStepperConfig would become mandatory in the stepper, for all consumers. IIRC in the past we discussed similar things (for the HAAPI fetch configuration) and you argued in favor of not doing that.

If we do that, I think the whole configuration should be passed into the stepper, not just the initialUrl. That could also be OK, namely if we have a helper function like "read bootstrap config from window".

More thoughts?

@luisgoncalves luisgoncalves requested a review from markoweb April 7, 2026 10:19
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.

3 participants