util_item_href_equal


Description:

[ Version ( since = "3.40" ) ]
public static bool util_item_href_equal (string href1, string href2)

Compares two hrefs and return whether they reference the same item on the server.

The comparison is done in a relaxed way, not considering scheme part and comparing the host name case insensitively, while the path case sensitively. It also ignores the username/password information in the hostname part, if it's included. The function doesn't decode any URI-encoded characters.

Parameters:

href1

the first href

href2

the second href

Returns:

whether the two href-s reference the same item