URL handling in the SearchResult WebPart #3870
Unanswered
jochenfritz-22
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Can you check using another tool that the value in the property has the spaces added and If the data somehow is stored this way, you can use handlebar helpers to manipulate the URL in your template. Remove spaces and replace // with ://. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a question regarding the handling of URLs in the SearchResult WebPart. I’m addressing this question in this forum as my research has shown that it relates to how URLs are resolved in Modern Search.
Scenario: I have a list with entries, and each entry is assigned a link pointing to the intranet. The goal is to display all the list entries in a Search Result WebPart and make the link to the intranet accessible via the title.
For the corresponding column, I have created the “RefinableString123” which I can read in the Search Result WebPart.
Problem: In the Search Result WebPart, the string is altered in a way that it no longer remains a URL and, therefore, cannot be accessed. As seen in the example: URL in the PnP - Search Results / Debug
The URL could be modified using a regular expression, but since scripts are not allowed in the tenant, this is not an option.
I would greatly appreciate it if someone could provide a solution to this challenge.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions