Page 1 of 1
Page link dependent on previous page
Posted: Thu Jul 29, 2021 1:46 pm
by Hbrownell
Is it possible to control a link on a page to change depending on where the client connected from?
I have a site that has multiple sites that all reference the exact same information, just different landing pages and individual content pages. For more functionality and less repetition, I'd like the mutual links to reference the same pages. However, once they are there, is it possible to have a button that takes them back to the "previous" page which would get them back to where they started?
Visitor goes to;
IndexB, selects common technology page;
visitor clicks;
To go back to the index, (The page currently will go back to the top indexA, I'd like it to be smart enough to go back to indexB)
Is this possible?
Re: Page link dependent on previous page
Posted: Thu Jul 29, 2021 2:06 pm
by crispy68
You could try adding something like this as the link:
As long as they don't delete their history or cache in between, I think it should work.
Could also try:
Code: Select all
onclick="history.go(-1); return false;"
or
Code: Select all
onclick="window.history.go(-1); return false;"
Not at my computer to test these but based on what I could find one of them should work.
Re: Page link dependent on previous page
Posted: Thu Jul 29, 2021 2:52 pm
by alan_sh
Isn't one of the options on a button "back"? i.e. return to where you came from. I've not got WWB open so I can't check.
Alan
Re: Page link dependent on previous page
Posted: Thu Jul 29, 2021 2:55 pm
by alan_sh
Just checked - use "Smart Link" and select "back" as the option. No html needed.
Re: Page link dependent on previous page
Posted: Thu Jul 29, 2021 3:18 pm
by Hbrownell
Yah, I did also find the "Back" option. I think what I'm going to be forced to do is not have the menu bar on the tech pages and just have a "back" button. Just no forward navigation ability.

Re: Page link dependent on previous page
Posted: Thu Jul 29, 2021 4:21 pm
by alan_sh
You never asked for a 'forward' capability. You can get that from a menu bar or a button because you know where you want to take them.
I use the 'Back' capability of a button in some of my sites. It works well.
Alan
Re: Page link dependent on previous page
Posted: Thu Jul 29, 2021 5:11 pm
by Hbrownell
I think I was coming about my needs the wrong way. I took advantage of the content holders and embedded pages and succeeded with what I actually needed. I just have separate navigation that's at the "current level" and the corporate site is on the top level while the separate sites are hidden. I just needed to create some dummy pages where the master page controls the header and footer, and the page is controlled by having a separated nav that embedded into the dummy page along with the needed page that goes into a different embedded page. If that makes any sense..
