Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PnP Modern Search V4 - Query Template Path:{\Site.URL}/<LibraryName> not working #1769

Closed
wobba opened this issue Jan 28, 2022 Discussed in #1767 · 3 comments
Closed

PnP Modern Search V4 - Query Template Path:{\Site.URL}/<LibraryName> not working #1769

wobba opened this issue Jan 28, 2022 Discussed in #1767 · 3 comments
Labels
bug Something isn't working v4 version 4

Comments

@wobba
Copy link
Collaborator

wobba commented Jan 28, 2022

v4.5.3

Discussed in #1767

Originally posted by jameelrrs January 28, 2022
Hi,

To start with, PnP Modern Search WebPart is a great Solution. Amazing and appreciate the work done by the community.

What was working:
Using a dynamic token in the PnP - Search Results query template to point my results to a specific library, since we have multiple sites as below:
Path:{\Site.URL}/<LibraryName>

Issue:
This was working fine until we planned to move to V4. However the same query doesn't work in version V4. Somehow, it adds " in the beginning or ending of the queryModifier and adding LIbraryName after it doesn't give results.

Is there something missing. Please suggest... Thanks in advance.

@wobba wobba added bug Something isn't working v4 version 4 labels Jan 28, 2022
@wobba
Copy link
Collaborator Author

wobba commented Jan 28, 2022

@FranckyC path:{\Site}/lala is being sent as path:{Site}/lala, meaning the \ is stripped on the request.

@FranckyC
Copy link
Collaborator

Yes I noticed that, you can use the Path:{site.absoluteUrl} token as a workaround for now. It should work.

FranckyC added a commit that referenced this issue Feb 1, 2022
…If the token property is not found in the current context (client side resolution) then the value is let untouched for server side processing as a query variable + restricted manual character escape to curly braces only.
FranckyC added a commit that referenced this issue Feb 1, 2022
…If the token property is not found in the current context (client side resolution) then the value is let untouched for server side processing as a query variable + restricted manual character escape to curly braces only. (#1784)
@FranckyC
Copy link
Collaborator

FranckyC commented Feb 1, 2022

@wobba @jameelrrs should be fixed in #1784.

@FranckyC FranckyC closed this as completed Feb 1, 2022
@microsoft-search microsoft-search deleted a comment from MaruVC Jun 26, 2022
@microsoft-search microsoft-search locked as resolved and limited conversation to collaborators Jun 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working v4 version 4
Projects
None yet
Development

No branches or pull requests

2 participants