Skip to content

Failed to execute pushState on History with mailto link #1845

Open
@karimaelo

Description

@karimaelo

Bug Report

Steps to reproduce

  • Create a link: Dev Support Team
  • when you click on the link it does not trigger opening a mail client.
  • Look into the console for an error
Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL 'mailto:[email protected]' cannot be created in a document with origin 'http://localhost:3000' and URL 'http://localhost:3000/get-started'.

What is current behaviour

Link does not open and an error is thrown instead

What is the expected behaviour

Link should trigger an email client to open

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Mac OS

  • Node.js version: 16.3.2

  • npm/yarn version: 8.1.2

  • Browser version: Chrome Latest

  • Docsify version: docsify@4

  • Docsify plugins:

  <!-- Docsify v4 -->
  <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
  <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
  <script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
  <!-- PrismJS Options -->
  <script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    wait for informationsomething is not clear, waiting for the author of the issue/pr

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions