How to create a dynamic url to buddypress profile page?

Use to be like domain.com/members/%username%