"My Profile" button doesn't redirect - Custom member profile

Hello!

I followed the article “How to Build Your Own Members Area Using Code” and a video tutorial about it. I have followed them 3 times from scratch.

It seemed to work for a while but sometimes, if the user is creating they profile for the first time, the “My Profile” button won’t redirect them to the dynamic page where the form is located. If they have already created their profile and want to modify it, it works well.

It is working at this time but it wasn’t working yesterday. Any reason why this could be hapenning?

The Log In page is https://www.packtobasicscr.com/myprofile

The code I used:


The on click functions and their names are set up correctly.

Thanks in advance for your help :slight_smile: