|
|
@@ -136,11 +136,11 @@ export function attachTitleHeader(path) {
|
|
|
|
|
|
/**
|
|
|
* If the pagePath is top page path, eliminate the pageId from the url path.
|
|
|
- * @param {string} pagePath
|
|
|
- * @param {string} pageId
|
|
|
+ * @param {string} path
|
|
|
+ * @param {string} id
|
|
|
* @returns {string}
|
|
|
* @memberof pathUtils
|
|
|
*/
|
|
|
-export const returnPathForURL = (pagePath, pageId) => {
|
|
|
- return pagePath === '/' ? pagePath : addHeadingSlash(pageId);
|
|
|
+export const returnPathForURL = (path, id) => {
|
|
|
+ return path === '/' ? path : addHeadingSlash(id);
|
|
|
};
|