Is that possible to get nav’s handle or name from a Url inside that nav?
Let say i have a Url of a collection https://avasahome.myshopify.com/collections/ABC
that is inside a ABC Test
nav which the handle is abc-test
.
Can i get abc-test
from the Url https://avasahome.myshopify.com/collections/ABC
?
Please help me with this cause i found no document about this matter.
Thank you!
2
Answers
Put the below code in your liquid file. This is basically a function which invoked will return you the Nav Link Text
This will assign your desired value as
retrievedLinkHandle
: