Function transformSearchParamsIntoHashParams

  • JMap.History.transformSearchParamsIntoHashParams

    Get all specified search params in the url and transform them into hash params without refreshing the page.

    Parameters

    • paramNames: string | string[]

      list of params to transform.

    Returns void

    Example

    // Ex. url is = ***http://localhost:8080/services/ng?foreign=true&ngProjectId=0&myvar=test***

    JMap.History.transformSearchParamsIntoHashParams(["ngProjectId", "myvar"])

    // The url is now = ***http://localhost:8080/services/ng?foreign=true#ngProjectId=0&myvar=test***