woocommerce/plugins/woocommerce-admin/client/lib/nav-utils
Albert Juhé Lluveras 70e7e14e7a Persist time queries when clicking on breadcrumbs links (https://github.com/woocommerce/woocommerce-admin/pull/759)
* Make breadcrumbs links persist date queries

* Add tests to getTimeRelatedQuery() when query parameter not set

* Add comment explanation about navUtils self-import
2018-11-02 22:38:16 +01:00
..
test Persist time queries when clicking on breadcrumbs links (https://github.com/woocommerce/woocommerce-admin/pull/759) 2018-11-02 22:38:16 +01:00
README.md Add ReportFilters Component 2018-08-15 11:15:30 +12:00
index.js Persist time queries when clicking on breadcrumbs links (https://github.com/woocommerce/woocommerce-admin/pull/759) 2018-11-02 22:38:16 +01:00

README.md

Nav Utils

This is a library of functions used in navigation.

getPath()

Get the current path from history.

getQuery()

Get the current query string, parsed into an object, from history.

JS version of admin_url. Returns the full URL for a page in wp-admin.

getNewPath( object: query, string: path, object: currentQuery )

Return a URL with set query parameters. Optional path, currentQuery, both will default to the current value fetched from history if not provided.

updateQueryString( object: query )

Updates the query parameters of the current page.