URL placeholder (template variables)

The URLs specified in the page table do not need to be absolute strings. You have the option to integrate template variables in the address which are then filled-out with parameters from a Public Spot session when the device requests the pages from the server. Placeholders have a form similar to C format strings, e.g., a percent sign immediately followed by a single, lowercase character. The following placeholders are defined:

%a
Inserts the device’s IP address. The placeholder only returns a value if the Request type in the Page table is set to Template.
Anmerkung: Note that this placeholder cannot generate a reachable address if the device itself is located behind another router with activated NAT.
%e
Inserts the device serial number.
%i
Inserts the NAS port ID. In this context, "NAS" stands for "Network Access Server". This variable contains the interface of the device that the client used to login. For a WLC or router without WLAN this corresponds to a physical interface, such as LAN-1, or, for a standalone access point, it is the SSID.
%l
Inserts the device host name.
%m
Inserts the MAC address of the client as a hexadecimal string of length 12. The individual bytes are separated by colons.
%n
Inserts the name of the device the way it is configured in the setup menu under Name.
%o
Inserts the URL of the Internet page which the user initially requested. After successful authentication, the device forwards the user to this URL.
%s
If the client is connected to the device via a WLAN interface, this placeholder will insert the WLAN SSID used in the network that the client is connected to. This feature is particularly interesting when MultiSSID is used, since this gives the server the opportunity to display different pages based on the SSID. If the client is connected via another access point that connects to the device via a Point-2-Point connection, the SSID of the first WLAN will be inserted. If the client is connect via Ethernet, the placeholder remains empty.
%t
Inserts the routing tag which is appended to the client's data packets.
%v
If the requesting client is assigned an individual VLAN ID, this variable contains the source VLAN ID.
%0-9
Inserts a single number between 0 and 9.
%%
Inserts a single percent character.

In order to be able to use variables for a template, add the parameters to the Page Address (URL) in the page table. In the following URLs the variable %i is replaced with LAN-1 as described in the sample above:

Example:http://192.168.1.1/welcome.php?nas=%i

Example:http://192.168.1.1/%i_welcome.html