Add a JavaScript utility function for building URLs.

Review Request #9716 — Created March 1, 2018 and submitted — Latest diff uploaded

Information

Djblets
release-1.0.x
dcc628b...

Reviewers

This adds a new Djblets.buildURL() function that can build a URL from
a base path, query string data, and an anchor. It takes care of encoding
query string data and ensuring the resulting URL is formatted just
right.

Unit tests pass.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.

orig
1
2
3
4
djblets/static/djblets/js/utils/urls.es6.js
djblets/static/djblets/js/utils/tests/urlsTests.es6.js
Loading...