Last active
December 14, 2023 06:34
-
-
Save malle-pietje/c030e9d6ccdc1c3ddfdfc4363ba79489 to your computer and use it in GitHub Desktop.
Redirection to a custom URL from the UniFi controller JSP-based captive portal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> | |
<head> | |
<title><unifi txt="Redirector" /></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="refresh" content="0;url=https://<YOUR CAPTIVE PORTAL URL>/<unifi var="mac" />/<unifi var="ap_mac" />"> | |
</head> | |
<body> | |
</body> | |
</html> |
Can this code be used if the unifi controller is being hosted online, cloud?
@malle-pietje Thank you so much for your help! <3
@malle-pietje Thank you so much for your help! <3
You’re welcome 👍
FYI legacy hotspot seems to be completely gone from Network 8.0.24, only the Angular seems to be left
Yes, that is correct. Here’s a first post on the Ubiquiti community where this topic is discussed:
https://community.ui.com/questions/Guest-portal-customization-html-css-with-the-new-UI-how-to-enable/81565820-50e2-4e6e-8bc6-b7c16877cb9a#answer/df1c3b80-6edd-4f75-a235-912f78afb994
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That does make sense, thanks for the feedback.