replace # with proper routes