code: function encodePagePath(path) {
    const paths = path.split('/');
    paths.forEach((item, index) => {
      paths[index] = encodeURIComponent(item);
    });
    return paths.join('/');
  }
docs: Encode specified `path`
  with [encodeURIComponent]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent}.
  
  @param {string} path
  @returns {string}
  @memberof pathUtils