use equality method for permalinks

issue #45