I have a problem when a user is sent an email to either confirm their account by email, or to reset their password by link.
Once they have clicked the link in the email, they are taken to a page where they are either informed that they have successfully created an account, or they are given the option to change their email.
After this stage, I would like to redirect them back to the login page for the main application.
The problem I have is that I have built all of my pages in the default container, and the pages that the email directs the user to are in the system container and I am having trouble with sending the user to the login page in the default container.
I have created a button on the page in the system container with the following logic:
But instead of taking the user to the userLoginPage it goes to the index.html page and the url in the browser is:
Is there any way to change the destination page of the {confirmation_url} in the email template while retaining the functionality to confirm email / provide password reset options?
If not, what mistake am I making with the URL parameters in the redirect above?
Am I better off just building the whole application in the system container to avoid this problem?
And a separate question, is there any plan to have folders in the containers so the pages can be structured and found more easily?
@viktor.liablin I have done some further testing, and it works when I select that exact page for preview from the UI builder.
But if I actually follow the link from the email to that page, and then select the button that it designed to take me to the login page, it does not work and I get this error:
{“code”:6007,“message”:“The specified resource was not found”,“errorData”:{}}
You should use an absolute URL, because if you are on the following URL https://foo.com/my/directory/path and try to open this page ../new-app the browser actually will open the next URL https://foo.com/my/new-app, so it depends where the block is used
@vladimir-upirov this still seems to cause the same issue. I’ve tested with an external URL (www.google.com) and the same thing happens with the same error message as above
I have two containers in my application. I have built my application in the default container. When the user confirms email address or resets password, they are taken to a page that is in the system container.
When the user has confirmed email address or reset password, I want to direct them to the login page in the default container.
The pages the user is taken to in the system container (confirmation-confirmed) and (change-password) both have buttons, and I have used this logic for onclick events for the buttons:
When I preview the confirmation-confirmed page directly from UI Builder, this works and I am taken to the login page within the default container.
But if I create a test user and click the link to confirm my email address, I am taken to the confirmation-confirmed page, and when I click the button I get this error message:
How do you test with a test user? Can you describe steps?
I see your system container is published, but “default” is not
Maybe you have tasted in published system container?
If you tasted in published app, url to the userLoginPage page should be another
@viktor.liablin An email is sent to the user email address, the link is clicked to confirm which takes the user to the confirmation-confirmed page and then the button is clicked to go to the userLogin page.
It is true that the system container is published and the default is not, is this the reason that this is happening?
Hello there,
Welcome to Mina. Please confirm your email address so that you can log in and start saving.
Confirm your email address here
Thanks,
Luc | Founder, Mina