Skip to content

email address mailto links don't work #1041

Description

@ethanmdavidson

Describe the bug
When an email address (e.g. [email protected]) is entered in the markdown editor, it will be rendered correctly in the preview pane as a mailto link (mailto:[email protected]). 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:[email protected]).

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. [email protected])
  3. Click on the link in the preview. It will open your email client and fill [email protected] 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.
[[email protected]](mailto:[email protected])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions