Replies: 1 comment 4 replies
-
Easiest way to get the token is to set of filter web part, click the value, and copy what is in the URL of the browser. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, i want to create a deep link to a pnp filter on a different site using a managed metadata property.
Basically my goal is to click on an icon in my search results webpart, which then opens a new tab to a different page on the same site, with some filters already applied.
To do this the filter has to look like this
f=[{"filterName":"RefinableString00","values":[{"name":"eBook","value":"\"ǂǂ65426f6f6b\"","operator":0}],"operator":"or"}]#
But i have no idea where i can get the refinment token used in the 'value' part.
I have already found out that the refinment token is a HEX encoded version of the term name, but it looks like the base64Encode handlebar is not available in the modern search web parts.
I have also found this discussion #3741 and the workaround to use the dynamic url fragments But unfortunately, the results are filtered, but the filters are not set which is needed in my use case.
So my questions are:
The only solutions i can think of so far are:
Maybe one of you has an idea how to realize this, I would certainly be very happy about it.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions