FIX: Use absolute URLs in search shortcut (#14585)

This commit is contained in:
Penar Musaraj 2021-10-13 00:44:45 -04:00 committed by GitHub
parent e3c724f79f
commit 308823a253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ export default createWidget("search-menu", {
this.appEvents.trigger(
"composer:insert-text",
document.activeElement.getAttribute("href"),
document.activeElement.href,
{
ensureSpace: true,
}

View File

@ -350,7 +350,7 @@ acceptance("Search - Authenticated", function (needs) {
assert.equal(
query("#reply-control textarea").value,
firstLink,
`${window.location.origin}${firstLink}`,
"hitting A when focused on a search result copies link to composer"
);
});