demo/dist/demo.js
function _captureUrlChange(from, to) {
	    var parsedLoc = parseUrl$1(this._location.href);
	    var parsedTo = parseUrl$1(to);
	    var parsedFrom = parseUrl$1(from); // because onpopstate only tells you the "new" (to) value of location.href, and
	    // not the previous (from) value, we need to track the value of the current URL
	    // state ourselves

	    this._lastHref = to; // Use only the path component of the URL if the URL matches the current
	    // document (almost all the time when using pushState)

	    if (parsedLoc.protocol === parsedTo.protocol && parsedLoc.host === parsedTo.host) to = parsedTo.relative;
	    if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) from = parsedFrom.relative;
	    this.captureBreadcrumb({
	      category: 'navigation',
	      data: {
	        to: to,
	        from: from
	      }
	    });
	  }
function _captureUrlChange(from, to) {
	    var parsedLoc = parseUrl$1(this._location.href);
	    var parsedTo = parseUrl$1(to);
	    var parsedFrom = parseUrl$1(from); // because onpopstate only tells you the "new" (to) value of location.href, and
	    // not the previous (from) value, we need to track the value of the current URL
	    // state ourselves

	    this._lastHref = to; // Use only the path component of the URL if the URL matches the current
	    // document (almost all the time when using pushState)

	    if (parsedLoc.protocol === parsedTo.protocol && parsedLoc.host === parsedTo.host) to = parsedTo.relative;
	    if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) from = parsedFrom.relative;
	    this.captureBreadcrumb({
	      category: 'navigation',
	      data: {
	        to: to,
	        from: from
	      }
	    });
	  }
function _captureUrlChange ( from , to ) { var parsedLoc = parseUrl$1 ( this . _location . href ) ; var parsedTo = parseUrl$1 ( to ) ; var parsedFrom = parseUrl$1 ( from ) ; // because onpopstate only tells you the "new" (to) value of location.href, and // not the previous (from) value, we need to track the value of the current URL // state ourselves this . _lastHref = to ; // Use only the path component of the URL if the URL matches the current // document (almost all the time when using pushState) if ( parsedLoc . protocol === parsedTo . protocol && parsedLoc . host === parsedTo . host ) to = parsedTo . relative ; if ( parsedLoc . protocol === parsedFrom . protocol && parsedLoc . host === parsedFrom . host ) from = parsedFrom . relative ; this . captureBreadcrumb ( { category : 'navigation' , data : { to : to , from : from } } ) ; }
Captures a breadcrumb of type "navigation", normalizing input URLs
@param to the originating URL
@param from the target URL
@private
Captures a breadcrumb of type navigation normalizing input URLs