Skip to content
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

email address mailto links don't work #1041

Closed
ethanmdavidson opened this issue Sep 17, 2019 · 1 comment
Closed

email address mailto links don't work #1041

ethanmdavidson opened this issue Sep 17, 2019 · 1 comment
Assignees

Comments

@ethanmdavidson
Copy link
Contributor

Describe the bug
When an email address (e.g. test@gmail.com) is entered in the markdown editor, it will be rendered correctly in the preview pane as a mailto link (mailto:test@gmail.com). However, when the page is saved, the mailto link is rendered improperly (page path is prepended, making it a link to http://mywikijs.com/en/pagename/mailto:test@gmail.com).

To Reproduce
Steps to reproduce the behavior:

  1. Create a new page (or edit an existing page)
  2. Enter an email address in the page body (e.g. test@gmail.com)
  3. Click on the link in the preview. It will open your email client and fill test@gmail.com into the 'to' field.
  4. Save the page and close the editor
  5. Click on the email address link on the page. Instead of the email client opening, you are directed to a page which simply displays the text "Not Found".

Expected behavior
Email client is opened with the 'to' field filled.

Host Info (please complete the following information):

  • OS: CentOS 7.6
  • Wiki.js version: 2.0.0-beta.303
  • Database engine: postgres 11.5
  • Node.js version: 10.16.3

Workaround
You can work around this bug by explicitly specifying the mailto link, e.g.
[test@gmail.com](mailto:test@gmail.com)

@NGPixel
Copy link
Member

NGPixel commented Sep 21, 2019

Fixed by 06250c4

@NGPixel NGPixel closed this as completed Sep 21, 2019
jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this issue Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants