up.history.isLocation()
. It returns whether the given URL matches the current browser location.up.util.normalizeURL()
. It returns a normalized version of the given URL string. Two URLs that point to the same resource should normalize to the same string.[up-nav]
link to the root path (/
) would never receive the .up-current
class (#280).[up-nav]
link would never receive the .up-current
class if the current URL contains a #hash
fragment (#284).{ solo: true }
abort all other requests.#hash
fragments.
If you're upgrading from an older Unpoly version you should load unpoly-migrate.js
to polyfill deprecated APIs.
Changes handled by unpoly-migrate.js
are not considered breaking changes.
See our upgrading guide for details.