Hi @DMehaffy your are talking about the url property and i see in the description : Public url of the server. Required for many different features (ex: reset password, third login providers etc.). Also enables proxy support such as Apache or Nginx, example: https://mywebsite.com/api. The url can be relative, if so, it is used withhttp://${host}:${port} as the base url. An absolute url is however **recommended** .
The example in the description talking about api url ? example: https://mywebsite.com/api
In my case i’ll have two urls :
One for my BO and my api like : https//my-strapi-bo.com && https//my-strapi-bo.com/api
One for the public website : https//my-public-website.com
And of course i would like, when a link is send by mail, redirect to an url of my public website when an account is validate for example : https//my-public-website.com/register
Should I set the property url with absolute path of my public website ?
no problem doing that?
Remove the trailing slash on the url but yes if you have your api routes and admin split you need to use the https://my-strapi-bo.com/api
You will have an issue in routing through trying to mount the admin panel on the root of your strapi domain. We have an open bug report about that here:
@DMehaffy it is not a split between api routes and admin. Admin BO and api routes are on the same domain. I have another domain for my frontend public application and an user can create an account with this application. I would like the link in the email to have the public site url inside and not localhost or strapi BO url
Hi @DMehaffy i tried your solution and it works now.
I overridden the sendEmailConfirmation method in plugin/users-permissions/services and i changed sur URL sent with my frontend url application (environnement variable) + the token to update an user.
After i create the specific page where I do the GET request auth/confirmation-email with the token passed in params tu validate the account.
For overridde methods in my backend strapi I had to do another route for the email confirmation and copy past the code of the original in the new method. I can’t directly override the existing route auth/email-confirmation.
I don’t know if it is normal, btw it works.
Thanks for your help
hi @Jean1 how did you manage to modify the template of the reset password email ?
I did it in parametres>email templates but I still receive te default one. Any ideas ?