Do add query to decree link
Fix decree_pages helper