My requirement is to have URLs in the following format:
/user/username
However, end users have the ability to append additional get parameters as they desire, such as:
/user/username?foo=bar
Given this scenario, when working with AngularJS, what would be the optimal method to extract only the username
portion (which comes after /user/
) excluding any other content that follows?