# Allowed href schemes

**URL:** https://meta.discourse.org/t/allowed-href-schemes/109640
**Category:** Feature
**Created:** [February 20, 2019, 10:09am UTC](https://meta.discourse.org/t/allowed-href-schemes/109640 "2019-02-20T10:09:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sizeof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sizeof/32/131954_2.png) [@sizeof](https://meta.discourse.org/u/sizeof)
#### Post date: [February 20, 2019, 10:09am UTC](https://meta.discourse.org/t/allowed-href-schemes/109640/1 "2019-02-20T10:09:04Z")

</div>

Microsoft’s office URI schemes conflict with the list separator of allowed\_href\_schemes.

> **[Office URI Schemes](https://learn.microsoft.com/en-us/office/client-developer/office-uri-schemes)**
>
> Office developer client VBA reference documentation

I can’t allow scheme like `ms-excel:ofv|u|https` for the full link `ms-excel:ofv|u|https://contoso/Q4/budget.xls`

Having an escape character or quoting the scheme string would be great.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 20, 2019, 10:38am UTC](https://meta.discourse.org/t/allowed-href-schemes/109640/2 "2019-02-20T10:38:52Z")

</div>

This is not a web compatible scheme, it refers to different concepts.

---

<div class="post-metadata">

### Author: ![sizeof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sizeof/32/131954_2.png) [@sizeof](https://meta.discourse.org/u/sizeof)
#### Post date: [February 20, 2019, 11:32am UTC](https://meta.discourse.org/t/allowed-href-schemes/109640/3 "2019-02-20T11:32:49Z")

</div>

I checked out the code and it turns out that the separator is chosen intentionally because all the schemes are stuffed in a regex and the regex is used to match links.  
In the settings I used `ms-excel:.+` to bypass the filter and now my links work as expected.  
Turns out it’s not a bug, it’s a feature! 😆
