lib/client/utils/getUrl.js
/**
 * Gets the URL fragment for an isolated or nochrome link.
 *
 * @param {string} $.currentHash The current hash fragment of the page
 * @param {string} $.encodedName The URL encoded name of the component
 * @return {string}
 */
Gets the URL fragment for an isolated or nochrome link.
@param {string} $.currentHash The current hash fragment of the page
@param {string} $.encodedName The URL encoded name of the component
@return {string}
Gets the URL fragment for an isolated or nochrome link . @param { string } $ . currentHash The current hash fragment of the page @param { string } $ . encodedName The URL encoded name of the component @return { string }
function buildIsolatedOrNoChromeFragment(_ref) {
  var currentHash = _ref.currentHash,
      encodedName = _ref.encodedName;
  var stripFragment = /^#\/?/;
  var stripTrailingSlash = /\/$/;
  var currentHashPath = getCurrentHashPath(stripFragment, stripTrailingSlash, currentHash);
  return "#!/" + currentHashPath + encodedName;
}
function buildIsolatedOrNoChromeFragment ( _ref ) { var currentHash = _ref . currentHash , encodedName = _ref . encodedName ; var stripFragment = / ^#\/? / ; var stripTrailingSlash = / \/$ / ; var currentHashPath = getCurrentHashPath ( stripFragment , stripTrailingSlash , currentHash ) ; return "#!/" + currentHashPath + encodedName ; }
Gets the URL fragment for an isolated or nochrome link.
Gets the URL fragment for an isolated or nochrome link .