Hello, I’m trying to add a button in the header section that will show up on all pages. When the user clicks the button, there is a condition to check to see if the user is logged in or not. If the user is logged in, it will direct them to a dashboard page. If the user is not logged in, it will direct them to a login page. I’m adding the code in the site code section. Below is the code:
I can not get this to work. What am I doing wrong? Any suggestions?
Could you paste the code here rather than an image?
What is the URL ending for your login page?
Is it “/login”
Or “/Login”
You need to make sure you write it correctly: “/this-needs-to-be-your-url”
Not like this Login
.
Assuming your other URL page does exist for each member, fixing the login url should work.
That was it! Had ‘Login’ instead of ‘/login’. Thanks for the help.
@don1626 Remember you can mark helpful answers as ‘top answer’ via the settings. This helps the community know your question has been answered.