Replaced the treaty URL building with WP page API
Fixed bug in i3_url_treaty - parameters were mixed