API reference documentation
fcharest edited this page May 4, 2015
·
1 revision
// TODO
// TODO
Gets a formatted url concatening baseUrl
and url
. If baseUrl
is omitted, it will look for configs.baseUrl
.
utilities.url('/home-page', '/') // /home-page
utilities.url('/home-page', '/v3/') // /v3/home-page
Appends the query string
pattern to the provided url.
utilities.patternWithQueryString('/home-page') // /home-page:?queryString:
Joins multiple strings to form an url.
var id = 3; // fetch some id from the database.
utilities.joinUrlParts('episodes', id, 'edit') // /episodes/3/edit