I want to change what appears on hoge.com/hoge by retrieving information from the previous page or dynamically using some method.
I think the HTTP Header contains the URL of the previous page as the Referer.(Some sites are taking action such as leaving the Referer blank for security reasons, but if it's your site, you should be able to use Header containing the Referer information.)
When you visit hoge.com/hoge, I think it is possible to collect the Referer information (the URL of the previous page) from the HTML Header, and then access it to reflect the information collected on the page.
It's going to be a little complicated because the server needs to detect and deal with certain URLs.
I don't know the specific functions required, so this is a very rough answer, but I think the information in the Referer is easy to use.
There are many ways.
location.searchon the post-transition page to change the content
© 2022 OneMinuteCode. All rights reserved.