03-03-2017 01:04 AM
Hi,
We just spent some time to build a link from a hotspot portal to a guestportal. Just thought I would share the code we inserted in the opt content 2 on the hotspot page. The trick is to take the sessionId from the current url on the hotspot page and add it to the link. Also want to give creds to Christophe Landrain who did most of this.
$(window).ready(function() {
var hostname = window.location.hostname;
var WebSessionId = window.location.href.substr(window.location.href.search("\\?")).split("=")[2];
jQuery('.cisco-ise-body').append(' <center><a href="https://'+hostname+':8449/portal/gateway?sessionId='+WebSessionId+'&portal=a23657f0-d7e2-11e6-a31c-0050568a29f5&action=cwa" style="color: rgb(0,255,0)"><font color="212121">Go to Guest Portal</font></a></center>');
});
//Gunnar
Solved! Go to Solution.
10-26-2020 09:27 AM - edited 10-26-2020 09:28 AM
11-02-2023 07:08 PM
Hi @reachmearun.s ,
Thanks for sharing the code. The https link info of guest 1 and guest 2 were the links of respective portal links that already created in guest portal ,and attached to one of the primary portal of portal as a part of sub links in optional content. Is that correct? Any changes that is required in code please suggest me as per different requirements where some field of code to be changed or it is common code that works in all cases, Kindly clarify ,that would be helpful.
Cheers,
Santhosh
11-02-2023 11:58 PM
01-31-2018 08:01 AM
Can someone confirm, that the redirect after clicking the button is not working on iOS Devices?
01-31-2018 09:34 AM
Are you using the Apple mini browser captive network assistant? It may have problems switching not sure.
If you are can you enable captive portal bypass on the controller to see if that maybe causing it?
04-23-2019 03:01 AM
Hello together,
where can i get the WebSessionID?
I don't know how to find this information.
Kind Regards
Jacob
04-23-2019 04:25 AM
04-23-2019 05:21 AM
Hi Jason,
it works now fine. It was my fault.
But we have still trouble with iPhone 8 devices to redirect the guest portal link.
We get a Bad Request 400 error message.
Do you have some idea?
Kind Regards
Jacob
04-23-2019 06:08 AM
04-24-2019 03:13 AM
Hi Jason,
thanks for your reply. Now, we activated CNA Bypass on the controller.
But we just have to reload the controller and waiting for a timeframe internally.
After that i will post the result.
Kind Regards
Jacob
04-24-2019 05:52 AM
04-25-2019 04:33 AM
Hi Jason,
let me explain my settings and my problem with this.
In the past CNA was disabled on the Wireless Lan Controller. I have a guest-portal self registration form.
In that form i configured the linking script that point to another guest-portal self registration form.
When i click the linking script with a iPhone i got a Bad Request 400 error.
Now with CNA enabled i got no Bad Request 400 error - but the IPhone user have to manually open an unknown web page and then they will be redirected to the guest-portal self registration.
If they clicked a bookmarked page on iPhone nothing happens. (no redirect)
Jason - do you have any idea of this behaviour?
Kind Regards
Jacob.
04-25-2019 05:11 AM
04-25-2019 07:13 AM
okay - i understand.
In my case it is possible to use ACL denies for appleiphonecell.com and captive.apple.com?
Workaround:
In the ACL on the WLC used for captive portal redirection and exemption of special traffic for the Guest Portal, add exemptions for the IP resources that resolve from "www.appleiphonecell.com" and "captive.apple.com" FQDNs.
For a short reply i will be thankfully.
Kind Regards
Jacob
04-25-2019 08:02 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide