add pathname router support :sparkles: