# "Copy path" to copy the entire path

**URL:** <https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438>\
**Category:** Feature Requests\
**Created:** [5 December 2023 14:49 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438 "2023-12-05T14:49:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeRiusRod](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@SeRiusRod](https://discourse.nodered.org/u/SeRiusRod)\
**Post date:** [5 December 2023 14:49 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/1 "2023-12-05T14:49:54Z")

</div>

I always wondered why the copy path button near an entry of the context palette misses the first level.  
I suppose there's a good reason for it, but if there's no one, would be a nice improvement. At least for me.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 December 2023 14:52 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/2 "2023-12-05T14:52:18Z")

</div>

I seem to remember that it was because it lets you paste the result direct into a typed input

---

<div class="post-metadata">

**Author:** ![SeRiusRod](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@SeRiusRod](https://discourse.nodered.org/u/SeRiusRod)\
**Post date:** [5 December 2023 15:12 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/3 "2023-12-05T15:12:29Z")

</div>

I think I don't understand.

Let's see an example:  
 ![imagen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/564113f22fc5adc6a110e6808f315ae76aea2a1e.png)

If I push on the copy path button, with the intention to paste it on a change node, or a `global.get` clause in a function node, I get the following:  
 ![imagen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/6722256d963abfc7c9621cbdf15df1dbfff3b323.png)

![imagen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/82c9ea2da81190d0c3a8154252beae4dfb2578ef.png)

And I always have to edit the path entered.  
Where do you refer that it's adapted to?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [5 December 2023 15:58 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/4 "2023-12-05T15:58:39Z")

</div>

Hi @SeRiusRod

As @TotallyInformation says, In the Debug sidebar, it skips the `msg` part so you can paste into the TypedInputs without having to remove `msg` each time.

You've highlighted a different place we expose that functionality - the context sidebar. In that case, I agree it should be copying the full path. Can I trouble you to raise an issue for this?

> **[Build software better, together](https://github.com/node-red/node-red/issues/new)**
>
> GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 December 2023 16:33 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/5 "2023-12-05T16:33:02Z")

</div>

> [@SeRiusRod](#):
>
> Where do you refer that it's adapted to?

![Animation1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/71865121e1bf6202724ed9dff7d7bf03ed4c39bf.gif)

---

<div class="post-metadata">

**Author:** ![SeRiusRod](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@SeRiusRod](https://discourse.nodered.org/u/SeRiusRod)\
**Post date:** [15 December 2023 11:41 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/6 "2023-12-15T11:41:57Z")

</div>

Thanks. As I don't usually copy paths from debug messages I didn't know that feature. 👍🏻

---

<div class="post-metadata">

**Author:** ![SeRiusRod](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@SeRiusRod](https://discourse.nodered.org/u/SeRiusRod)\
**Post date:** [15 December 2023 12:16 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/7 "2023-12-15T12:16:08Z")

</div>

Opened the following issue:

> <https://github.com/node-red/node-red/issues/4485>
>
> \### Current Behavior
> 
> From \[this\](https://discourse.nodered.org/t/copy-path-to…-copy-the-entire-path/83438/3) community question:
> 
> Pushing the copy button on any property always misses the root object.
> 
> \### Expected Behavior
> 
> Should better copy the full path.
> 
> \### Steps To Reproduce
> 
> !\[imagen\](https://github.com/node-red/node-red/assets/1693727/60ef9b1f-4387-4c7c-a0fa-1440a65f2ea2)
> If I push on the copy path button, with the intention to paste it on a change node, or a global.get clause in a function node, I get the following:
> !\[imagen\](https://github.com/node-red/node-red/assets/1693727/0c9e0365-699b-42e9-800e-ae721dfcdea6)
> 
> !\[imagen\](https://github.com/node-red/node-red/assets/1693727/bf43c014-784f-4a4e-b4f2-b31e1ec9d957)
> 
> And misses the \`ac\_loads\`object.
> 
> \### Environment
> 
> \- Node-RED version: 3.1.1
> \- Node.js version: 18.15.0
> \- npm version: 9.5.0
> \- Platform/OS: Linux
> \- Browser: Firefox

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 February 2024 12:16 UTC](https://discourse.nodered.org/t/copy-path-to-copy-the-entire-path/83438/8 "2024-02-13T12:16:23Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
