URL Lock #539
Replies: 5 comments
-
In Business Manager, add a URL Redirect with Source Type URI "/Mydev*" and Destination Type "/MyDev". |
Beta Was this translation helpful? Give feedback.
-
Hi Amine,
I am sorry, what is SPA?
with the limited understanding of your problem, you can use url redirects
for all the new /changes urls.
…On Tue, Apr 16, 2019, 9:55 PM Amine Gabriel Bennani < ***@***.***> wrote:
Hello,
I would to lock page rooting for the folowing scenario:
- An ISML Page contains an Single-page application.
- the ISML is called via a controller.
- The result page URL could be like this "..../Mydev/"
I would to insure that even if the SPA changes the URL to for example
"/Mydev/something/blabla" the user keeps on the same ISML Page.
Can you please tell me if there is a native SFCC configuration that could
handle this.
If not so can you suggest a solution?
Thank you.
Best regards.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/orgs/SalesforceCommerceCloud/teams/community/discussions/27>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aogm5SgYH-N42JRwoEIw1QpB6rCd62ORks5vhflngaJpZM4cy3oo>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi @Gabenny - If you are trying to build single page app on SFCC then I think as a reference you should look at the checkout implementation in SFRA. There also after landing on checkout page, URL "Checkout-Begin" remains same only content on the same page gets updated based on the stage of checkout user is currently in (like shipping, payment) I think you will need to play around a lot with AJAX to implement this because much of the work will happen on the client side. Even in SFRA due to Ajax, checkout handling is a bit complex & lot of stuff is happening in client side JavaScript . Please let me know if you need further help. |
Beta Was this translation helpful? Give feedback.
-
Hello @mdzafar , Do you have any information on how to handle this? Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi @Gabenny, I would suggest instead of making it as URL path, use the hash. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I would to lock page rooting for the folowing scenario:
I would like to make sure that even if the SPA changes the URL to for example "/Mydev/something/blabla" the user keeps on the same ISML Page without reloading it.
Can you please tell me if there is a native SFCC configuration that could handle this.
If not so can you suggest a solution?
Thank you.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions