Url.isLocal
isLocal() -> boolean
Description
Returns true
if the URL is located at the same origin/host as the app.
This is the opposite of isRemote.
Request.getUrl().getHost() //= 'myapp.com' url'https://myapp.com/my/page'.isLocal() //= true // Relative URLs are always local url'/my/page'.isLocal() //= true