Skip to main content

convertPathToURL

Functions

isGlobalPath(path)boolean
localPathToGlobal(path)string
convertPathToURL(path)string

Given a path, which may be a local path, produce a fully qualified URL

isGlobalPath(path) ⇒ boolean

Kind: global function

ParamType
pathstring

localPathToGlobal(path) ⇒ string

Kind: global function

ParamType
pathstring

localPathToGlobal~scope : Window | DedicatedWorkerGlobalScope

Kind: inner property of localPathToGlobal

convertPathToURL(path) ⇒ string

Given a path, which may be a local path, produce a fully qualified URL

Kind: global function

ParamType
pathstring

Example

'/path' -> 'http://example.com/path'

Example

'some/local/path' -> 'http://example.com/current_path/some/local/path'