Skip to content

moxie.core.utils.Url

Davit Barbakadze edited this page Aug 5, 2017 · 2 revisions

Important! This page is auto-generated from the comments in the source files. All changes will be overwritten! If you are looking to contribute, modify the comment in the corresponding source file instead.

Module: moxie.core.utils.Url

Table of Contents

Methods

parseUrl(url) static

Parse url into separate components and fill in absent parts with parts from current url, based on https://raw.github.com/kvz/phpjs/master/functions/url/parse_url.js

Arguments

  • url String
    Url to parse (defaults to empty string if undefined)

Resolve url - among other things will turn relative url to absolute

Arguments

  • url String|Object
    Either absolute or relative, or a result of parseUrl call

Check if specified url has the same origin as the current document

Arguments

  • url String|Object