How URL Detection Works
The scripts read the browser location instead of storing a hostname, so one copy of the files works on every domain.
Values that are read
The href, origin, hostname and pathname are read and shown below. If the origin is unavailable, the fallback domain page.gd is used.
Internal links
Navigation links are rebuilt from the current origin, and the canonical link and Open Graph URL are updated in the same way.
Detected website
- Hostname
- Detected when JavaScript is enabled
- Origin
- Detected when JavaScript is enabled
- Current URL
- Detected when JavaScript is enabled
- Path
- Detected when JavaScript is enabled
- Directory status
- Detected when JavaScript is enabled