Revision code

Changes Version 2.4.0
Released on September 20, 2021 with 16 commits

  • New experimental function up.history.isLocation(). It returns whether the given URL matches the current browser location.
  • New experimental function 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.
  • Fix a bug where an [up-nav] link to the root path (/) would never receive the .up-current class (#280).
  • Fix a bug where an [up-nav] link would never receive the .up-current class if the current URL contains a #hash fragment (#284).
  • Unpoly now prints a log entry when a request or fragment update with { solo: true } abort all other requests.
  • All API functions that work with URL now document how they handle #hash fragments.

Upgrading

If you're upgrading from an older Unpoly version you should load unpoly-migrate.js to enable deprecated APIs. See our upgrading guide for details.
This website uses cookies to improve usability and analyze traffic.
I accept or learn more