Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@

### Features

- pat-inject: Don't rebase for some additional known prefixes to avoid that the links break when contained in an injected page snippet.
- pat-gallery: Allow adding images directly to the gallery.
- pat-validation: Allow for HTML5 style `required` attributes without a value.
- pat-validation: Added the possibility to check for fields equality
Expand Down
2 changes: 1 addition & 1 deletion src/pat/inject/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ <h3>Inject and fix URLs of options</h3>
class="pat-inject"
data-pat-inject="url:./index.html#rebase-url-demo; target: self::element"
>
injection happens here!
injection happens here! <a href="tel:3632347">Call for help</a>
</button>
</div>
</section>
Expand Down
5 changes: 5 additions & 0 deletions src/pat/inject/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,11 @@ const inject = {
value.slice(0, 2) !== "@@" &&
value[0] !== "#" &&
value.slice(0, 7) !== "mailto:" &&
value.slice(0, 4) !== "tel:" &&
value.slice(0, 4) !== "fax:" &&
value.slice(0, 7) !== "callto:" &&
value.slice(0, 10) !== "ts3server:" &&
value.slice(0, 6) !== "teams:" &&
value.slice(0, 11) !== "javascript:"
) {
value = utils.rebaseURL(base, value);
Expand Down