Route attribute replacement by listener