FIX: Use absolute URLs in search shortcut (#14585)
This commit is contained in:
parent
e3c724f79f
commit
308823a253
|
@ -299,7 +299,7 @@ export default createWidget("search-menu", {
|
|||
|
||||
this.appEvents.trigger(
|
||||
"composer:insert-text",
|
||||
document.activeElement.getAttribute("href"),
|
||||
document.activeElement.href,
|
||||
{
|
||||
ensureSpace: true,
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue