def get_url_with_query_params(request, location, **kwargs):
    """
    Returns link to given location with query params.

    Usage:
    get_url_with_query_params(request, location, query_param1=value1, query_param2=value2)

    returns:
    http(s)://host/location/?query_param1=value1&query_param2=value2&...
    """
    url = request.build_absolute_uri(location)
    if kwargs:
        url += "?"
    for key, value in kwargs.items():
        url += f"{key}={value}&"
    return url