You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing a hybrid app between SFRA/SiteGenesis, certain pages are redirected to PWA. For account pages, if the shopper is not logged in, they are redirected back to the original page via location.state.directedFrom. When the pathname contains the site alias and locale (/RefArch/en-US/account/wishlist), the navigate(location.state.directedFrom) results in a 404 with duplicate site aliases and locales (/RefArch/en-US/RefArch/en-US/account/wishlist)
Steps To Reproduce
Navigate directly to http://localhost:3000/RefArch/en-US/account/wishlist
Login
notice 404 for http://localhost:3000/RefArch/en-US/RefArch/en-US/account/wishlist URL
Expected result
Shopper is redirected to account wishlist page after login
Summary
When testing a hybrid app between SFRA/SiteGenesis, certain pages are redirected to PWA. For account pages, if the shopper is not logged in, they are redirected back to the original page via
location.state.directedFrom
. When the pathname contains the site alias and locale (/RefArch/en-US/account/wishlist
), thenavigate(location.state.directedFrom)
results in a 404 with duplicate site aliases and locales (/RefArch/en-US/RefArch/en-US/account/wishlist
)Steps To Reproduce
http://localhost:3000/RefArch/en-US/account/wishlist
http://localhost:3000/RefArch/en-US/RefArch/en-US/account/wishlist
URLExpected result
Shopper is redirected to account wishlist page after login
Actual result
404
System Information (as applicable)
Browser: Firefox
Node version: 16.19.1
pwa-kit version: 2.7.0
Desktop OS: macOS
Mobile Device Info: n/a
Additional information
Feel free to attach a screenshot.
The text was updated successfully, but these errors were encountered: