Skip to main content
ekanshj0002
Participating Frequently
May 20, 2021
Question

Redirect to different Sites/Tempo in Appian

  • May 20, 2021
  • 15 replies
  • 0 views

Hi All,

We have a UI where we call a safe link to open an External UI in the same tab. This safe link can be triggered from multiple places in Appian (Sites or Tempo). A single user can have access to multiple sites or tempo from where they can trigger the safe link. Now on the External UI, we have to call a link (link will be sent to External UI using API) to navigate back to Appian from the original location, but the problem is we do not have the browser URL from where the user clicked the safe link from. So is there a way we can find out from which site/tempo was the safe link triggered?

Eg -
User is on Site A -> Triggers a process -> UI has safe link -> User clicks on Safe link -> Navigated to External Site
User is on Site B -> Triggers a process -> UI has safe link -> User clicks on Safe link -> Navigated to External Site

Now how do we know that the user was on Site A or Site B as in Sites we cannot add any parameters while calling any process

Note -> Same process is used in Site A and Site B

15 replies

mikes0011
Brainy
May 21, 2021

There would be no way to do this unless you could use slightly different links to the external site, and based on that, add logic to the external site to determine which Appian site link to show the user.  Otherwise, you should probably just decide that the users should expect to always be navigated back to Site A (for example) regardless of where they were when they went to the external link.

The Expression Guru
peter.lewis
Employee
May 21, 2021

There actually is a potential solution that involves using a Web API to save the user's current location and redirect you to the correct place. However it is fairly complex - I'd only recommend using this if you're willing to devote the time to writing custom HTML to correctly insert data and redirect the user.

You can see an example of how this works in the Dynamic Site Management application on the app market.

ekanshj0002
Participating Frequently
May 24, 2021

Hi [mention:6b9f80ff18f9420082d13ef2d5121d56:e9ed411860ed4f2ba0265705b8793d05]
Thanks for your response.
The main problem that I am currently facing is to get the URL for the site, with HTML also getting the current URL for site is something that I am not able to achieve.