Before this commit, clicking on the "anchor" icon from a snippet editor would copy the client action's url (introduced in [1]). This commit changes the snippet's path computation to use the target's ownerDocument location instead of the global one. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-2687506 Part-of: odoo/odoo#96401