Properties
A few properties available on the swup instance that could be helpful.
options
Current options, after merging swup defaults and user options.
plugins
Array of all plugin instances currently enabled on swup.
location
The location of the page last navigated to, after any redirects. This object inherits all properties
from a native URL object, with an additional
url
property that combines path and query param.
swup.location.href // https://example.net/path?query#hash
swup.location.url // /path?query
swup.location.pathname // /path
swup.location.search // ?query
swup.location.hash // #hash
swup.location.href // https://example.net/path?query#hash
swup.location.url // /path?query
swup.location.pathname // /path
swup.location.search // ?query
swup.location.hash // #hash
currentPageUrl
The URL of the page last navigated to, after any redirects.