Skip to content

Failed to execute pushState on History with mailto link #1845

Closed

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:support@email.com' 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>

Activity

  1. Koooooo-7 commented on Jan 23, 2023

    @Koooooo-7
    Member

    Hi @karimaelo , is it in the history mode of ur site?
    If yes, add the the config on your link cross-origin-link and have a try.

  2. sy-records commented on Oct 9, 2025

    @sy-records
    Member

    Fixed via #1967

  3. added
    bugconfirmed as a bug
    and removed
    wait for informationsomething is not clear, waiting for the author of the issue/pr
    on Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmed as a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions