subsite::get_url (public)
subsite::get_url [ -node_id node_id ] [ -absolute_p absolute_p ] \ [ -force_host force_host ] [ -strict_p strict_p ] \ [ -protocol protocol ] [ -port port ]
Defined in packages/acs-subsite/tcl/subsite-procs.tcl
Returns the url stub for the specified subsite. If -absolute is supplied then this function will generate absolute URLs. If the site is currently being accessed via a host node mapping then URLs will omit the corresponding subsite url stub. The hostname will be used for any appropriate subsite when absolute URLs are generated.
- Switches:
- -node_id
(optional)- the subsite's node_id (defaults to nearest subsite node).
- -absolute_p
(defaults to"0"
) (optional)- whether to include the host in the returned url.
- -force_host
(optional)- Use a certain host. In case "any" is specified, and we have a host-node-mapping (e.g. non-connected cases) behave like a virtual server on the first host-node-mapping entry. In connected cases, "any" means: take whatever is provided via vhost.
- -strict_p
(defaults to"0"
) (optional)- -protocol
(optional)- -port
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- subsite_api