Arcade to determine browser url for use with weblink url

514
2
Jump to solution
06-09-2021 04:40 PM
kmsmikrud
Occasional Contributor III

Hello,

I would like to know if its possible to use arcade to determine the browser url to determine which weblink is returned. someone is using when viewing the Experience Builder application. Currently on our agency web server we have files stored on a web server that require a different url address depending on whether you are accessing the application from behind or outside the firewall.

A coworker sent me the following code that is used in javascript. The idea is if the browser shows behind the firewall, a certain web link is used versus outside the firewall another web link is used.

Is this possible?

Thanks in advance,

Kathy

 

 

if(window.location.href.indexOf(‘xxx.xxxx.xxxx’) > 0){

     window.location.href=’https://insidefirewall address/Documents/ ’ + strFile;

 }else{

     window.location.href=’https://outsidefirewalllink./Documents/’ + strFile;

  }

 

 

 

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

Hi @kmsmikrud ,

As far as I can tell Arcade does not have access to how a user has connected to the application. You will probably need a custom JavaScript application to use the solution provided by your coworker. 

View solution in original post

0 Kudos
2 Replies
XanderBakker
Esri Esteemed Contributor

Hi @kmsmikrud ,

As far as I can tell Arcade does not have access to how a user has connected to the application. You will probably need a custom JavaScript application to use the solution provided by your coworker. 

0 Kudos
kmsmikrud
Occasional Contributor III

Thank-you @XanderBakker for looking into my query and reply.

Much appreciated!

Thanks,

Kathy

0 Kudos