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

Url.isRelative

isRelative() -> boolean

Description

Returns true if the URL is a relative path (i.e. host/domain is not present).

url'/my/page'.isRelative()
//= true

url'http://site.com/my/page'.isRelative()
//= false

See Also