Skip to main content
Question

How to connect "?t=" parameter in shared frame link with a real node ID?


Not so far from the today Figma provided frame shared URL in the following format:

https://www.figma.com/file/2irRrkEgfBgbLMcdgPUSXt/OpenSearch?type=design&node-id=72%3A8539&mode=design&t=gbtgxDgFPZbXo6GZ-1

So, I was able to get a “node-id” parameter, decode it and find a node in a document by ID.

But now Figma gives URL in the following format:
https://www.figma.com/design/9C0Vp58ZQcvJC0G4gM6dIH/Common-pages?m=auto&t=Q2kLcrXlPng5YLvB-1

So, no more “node-id” in URL.

My questions:.
What is it “t=Q2kLcrXlPng5YLvB-1”?
How can I use it to find a node in a document?

Thanks

This topic has been closed for comments

2 replies

tank666
  • 4863 replies
  • July 19, 2024

You only need to use the node-id query parameter because only this parameter is responsible for the node ID. The t parameter is responsible for sharing attribution context key.

If the link does not include the node ID, it means that it leads to the first page of the file. You can get the first page ID using figma.root.children[0].id.


Thanks for information!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings