import { PageInterface } from "../../pages";
import getBaseUrl from "./getBaseUrl";

const getCurrentUrl = (page: PageInterface): string => {
  return `${getBaseUrl()}${page.action}`;
};

export default getCurrentUrl;

import { PageInterface } from "../../pages";
import getBaseUrl from "./getBaseUrl";

const getCurrentUrl = (page: PageInterface): string => {
  return page.action;
};

export default getCurrentUrl;

Use only path for current Url
Use only path for current Url
