Skip to content

v1.5.0

Compare
Choose a tag to compare
@platosha platosha released this 07 Oct 10:44
· 95 commits to master since this release

Live Demo →
API Documentation →

New features

This release includes improvements on search query string and hash support (issue #56).

  • 63ee8d6 feat: support search and hash strings in Router.go (#400)

    The Router.go navigation API method now accepts pathname with search and hash strings in a single in-app URL string:

    Router.go('/path?searchParam=value#footnotes');

    as well as separately:

    Router.go({pathname: '/path', search: '?searchParam=value', hash: '#footnotes'});

    The search and hash strings do not participate in route matching, however they are available in the action’s context argument and the component’s location property objects (see #396).

  • 9341511 docs: add demos for search and hash usage (#397)

    This adds documentation on using search query string and hash string with Vaadin Router, including examples on how to access them from components and actions, and how to construct and parse search query strings using URLSearchParams native API.

Bug fixes

  • b64acd8 fix: Router.go string pathname parsing in IE (#401)

    Fixes a parsing bug concerning the search query string support in the URL API ponyfill Vaadin Router internally uses in browsers that lack native URL construction support.

  • 5a37eb4 fix: ensure search and hash in context, location, and lifecycle (#396)

    Makes search and hash strings consistently available in the Router API.