Title: Custom URI Scheme Incorrectly Rewritten as HTTPS Link
Last modified: November 9, 2025

---

# Custom URI Scheme Incorrectly Rewritten as HTTPS Link

 *  Resolved [Conners Hua](https://wordpress.org/support/users/connershua/)
 * (@connershua)
 * [6 months, 4 weeks ago](https://wordpress.org/support/topic/custom-uri-scheme-incorrectly-rewritten-as-https-link/)
 * When using a custom URI scheme (e.g., `macappstores://`) in a Markdown link, 
   the plugin incorrectly rewrites it as an `https://` URL. This causes the link
   to open in a web browser instead of launching the intended native application(
   in this case, the Mac App Store).
 * Steps to Reproduce
    1. Add the following Markdown link to a document: `[Mac App Store Link](macappstores://
       apps.apple.com/cn/app/macos-sequoia/id6596773750?mt=12)`
    2. Render or click the link.
    3. **Actual behavior**: The link is converted to
       `https://apps.apple.com/cn/app/
       macos-sequoia/id6596773750?mt=12`and opens in a browser.
    4. **Expected behavior**: The original URI scheme should be preserved:
       `macappstores://
       apps.apple.com/cn/app/macos-sequoia/id6596773750?mt=12`,so that clicking it 
       triggers the Mac App Store app via the system URL handler.
 *  -  This topic was modified 6 months, 4 weeks ago by [Conners Hua](https://wordpress.org/support/users/connershua/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Pierre-Henri Lavigne](https://wordpress.org/support/users/peter202202/)
 * (@peter202202)
 * [6 months, 4 weeks ago](https://wordpress.org/support/topic/custom-uri-scheme-incorrectly-rewritten-as-https-link/#post-18712994)
 * 👋 [@connershua](https://wordpress.org/support/users/connershua/),
 * Fixed with the new version 3.23.0. 🥳 Actually it’s related to WordPress security
   features. I added the missing protocols to the white list, you can do it on your
   own with this kind of snippet for example :
 *     ```wp-block-code
       add_filter( 'kses_allowed_protocols', ( $protocols ) {    $protocols[] = 'macappstores'; // Add the 'macappstores' protocol    return $protocols;});
       ```
   
 * As other users may want to use those links, it’s nice to make it available by
   default. Feel free to open new topics in the future and I will update the white
   list when needed.
 * Kind regards,
 * Peter
    -  This reply was modified 6 months, 4 weeks ago by [Pierre-Henri Lavigne](https://wordpress.org/support/users/peter202202/).
 *  Plugin Author [Pierre-Henri Lavigne](https://wordpress.org/support/users/peter202202/)
 * (@peter202202)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/custom-uri-scheme-incorrectly-rewritten-as-https-link/#post-18794835)
 * [@connershua](https://wordpress.org/support/users/connershua/) I hope this message
   finds you well.
 * I haven’t heard from you for a while and I guess everything worked out so far
   for you so I’m gonna close this discussion. Free free to open a new one if need
   be.
 * Kinds Regards,
 * Peter

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-uri-scheme-incorrectly-rewritten-as-https-link%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/markup-markdown/assets/icon.svg?rev=2691249)
 * [Markup Markdown](https://wordpress.org/plugins/markup-markdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/markup-markdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/markup-markdown/)
 * [Active Topics](https://wordpress.org/support/plugin/markup-markdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/markup-markdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/markup-markdown/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Pierre-Henri Lavigne](https://wordpress.org/support/users/peter202202/)
 * Last activity: [4 months, 2 weeks ago](https://wordpress.org/support/topic/custom-uri-scheme-incorrectly-rewritten-as-https-link/#post-18794835)
 * Status: resolved