New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update doc + add localhost in confirmation links if url is not set #7054
Conversation
9fc601e
to
564b93b
Compare
Codecov Report
@@ Coverage Diff @@
## master #7054 +/- ##
==========================================
+ Coverage 20.05% 26.18% +6.13%
==========================================
Files 858 1130 +272
Lines 12049 15404 +3355
Branches 1951 2435 +484
==========================================
+ Hits 2416 4033 +1617
- Misses 8062 9556 +1494
- Partials 1571 1815 +244
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -643,7 +644,7 @@ module.exports = { | |||
settings.message = await strapi.plugins['users-permissions'].services.userspermissions.template( | |||
settings.message, | |||
{ | |||
URL: `${strapi.config.server.url}/auth/email-confirmation`, | |||
URL: `${getAbsoluteServerUrl(strapi.config)}/auth/email-confirmation`, // ICICI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
### Email validation | ||
|
||
This action sends an email to the user with the link to confirm the user. | ||
:::tip NOTE | ||
In production, make sure the `url` config property is set. Otherwise the validation link will redirect to `localhost`. More info on the config [here](../concepts/configurations.html#server). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
links should be pointing to .md files. vue-press generate the right urls on build
Signed-off-by: Pierre Noël <petersg83@gmail.com>
Signed-off-by: Pierre Noël <petersg83@gmail.com>
Signed-off-by: Pierre Noël <petersg83@gmail.com>
7e040ee
to
75be868
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fix #6909
Description of what you did:
http://{host}:{port}
instead of nothing ifstrapi.config.server.url
is not set