In my current project, I have a shopping basket integrated with the main site. Now I need to create some mini-sites to display the data received from the main site. When the user clicks the Buy Now button on the mini-site, he should be redirected to the main shopping cart. But when the user clicks the โContinue shoppingโ button, this should be sent back to the page of the mini-site where he was viewed. Both sites will have 2 different domain names. Can I send him back to the page where he was browsing us?
request.getHeader("Referer")
It will be 2 different web applications, so request.getHeader("Referer") will help send it back to the page where it was browsing.
Send me some suggestions.
Mujahid
source share