LOGIN USING SHORTCODE WON'T REDIRECT TO BUDDYPRESS PROFILE URL

I have a custom login page using Memberships 2 Pro. I want the user to be redirected to the user's BuddyPress profile page after login. I have implemented the code as instructed on the Redirect add-on tab in Memberships 2 Pro: https://simpleclubadmin.com.au/members/%5Busername%5D/profile. However, it doesn't work. Can you please advise on how to set it up?