def url_map(x):
    """
    Standardizes a URL by ensuring it ends with a '/' and does not contain hash fragments.
    """
    if '#' in x:
        x = x[:x.index('#')]
    x = x if x[-1] == '/' else (x + '/')

    return x