Skip to content

[Cleanup] Remove unused absoluteUrl util from retail react app#3633

Merged
vcua-mobify merged 3 commits intodevelopfrom
vc/remove-absoluteUrl-util
Feb 4, 2026
Merged

[Cleanup] Remove unused absoluteUrl util from retail react app#3633
vcua-mobify merged 3 commits intodevelopfrom
vc/remove-absoluteUrl-util

Conversation

@vcua-mobify
Copy link
Contributor

Small PR to remove an unused function from the retail-react-app.

Removing absoluteUrl now as it is incompatible with current work to add base path prefixes.

@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Feb 3, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@vcua-mobify vcua-mobify marked this pull request as ready for review February 3, 2026 22:32
@vcua-mobify vcua-mobify requested a review from a team as a code owner February 3, 2026 22:32
alexvuong
alexvuong previously approved these changes Feb 3, 2026
* If not provided, the function will call `getAppOrigin()`.
* @returns {string} - The fully qualified URL as a string.
*/
export const absoluteUrl = (path, appOrigin) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this is being used in getPasswordlessCallbackUrl?

Copy link
Contributor

Choose a reason for hiding this comment

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

nvm, I read it wrong, getPasswordlessCallbackUrl is using isAbsoluteUrl which is diff util func

@alexvuong
Copy link
Contributor

Thanks for working on this

@alexvuong
Copy link
Contributor

We are releasing another major breaking version for retail-react-app, this is the right time to remove this util. 👍

Comment on lines 27 to 33
Copy link
Contributor

@adamraya adamraya Feb 3, 2026

Choose a reason for hiding this comment

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

It looks like we no longer need this mock code since it was only there to support the absoluteUrl tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this mock as suggested

- [Feature] Update passwordless login and password reset to use email mode by default. The mode can now be configured across the login page, auth modal, and checkout page [#3525](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3525)
- Update "Continue Securely" button text to "Continue" for passwordless login [#3556](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3556)
- Util function for passwordless callback URI [#3630](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3630)
- [Cleanup] Remove unused absoluteUrl util from retail react app [#3633](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3633)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this line be in an new v9.0.0-dev section at the top in the changelog? Also since this removes a public export, might be worth tagging it as [Breaking] instead of [Cleanup] so customers know to watch out for it when upgrading

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I moved everything under 8.5.0-dev and 8.4.0-dev under a new 9.0.0-dev section since our latest release was 8.3.0.

@vcua-mobify vcua-mobify merged commit 9a3ec60 into develop Feb 4, 2026
41 checks passed
@vcua-mobify vcua-mobify deleted the vc/remove-absoluteUrl-util branch February 4, 2026 00:22
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.

4 participants