docsify icon indicating copy to clipboard operation
docsify copied to clipboard

mailto link doesn't work in history mode

Open pagyew opened this issue 3 years ago • 0 comments

Bug Report

Steps to reproduce

  1. Set routerMode to history.
  2. Create mailto link with <[email protected]>
  3. Click on rendered link.

What is current behaviour

Crashes with error:

SecurityError
Failed to execute 'replaceState' on 'History': A history state object with URL 'mailto:[email protected]' cannot be created in a document with origin 'https://kc32ry.csb.app' and URL 'https://kc32ry.csb.app/'.

What is the expected behaviour

Native behaviour

Other relevant information

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

  • Your OS: macOS Catalina, version 10.15.7

  • Node.js version: 16.13.2

  • npm/yarn version: npm v8.1.2

  • Browser version: Google Chrome 100.0.4896.127

  • Docsify version: 4.12.2

  • Docsify plugins: -

Please create a reproducible sandbox

Edit immutable-sunset-kc32ry

Mention the docsify version in which this bug was not present (if any)

pagyew avatar May 19 '22 15:05 pagyew