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
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