• Helper method to calculate the page base URL.

    Parameters

    • Optionallocation: URL

    Returns URL

    Function to return the base URL or given or current page.