Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Url.appendPath

appendPath($pathElement) -> string

Description

Add a path element to the end of the URL.

The appended element is automatically separated from the original path by a forward slash / and converted to dash-case if necessary.

url'/profile'.appendPath('view').appendPath(123)
//= url'/profile/view/123'

url'/author'.appendPath('Tan Thomas')
//= url'/profile/author/tan-thomas'

See Also