Jun 11 2019 03:12 AM - edited Jun 11 2019 04:00 AM
Hello,
Most of our SP site is setup using Quick Links and the Grid view. This gives a nice size of image and a consistent feel to the site. However, I recently wanted to create a new page that allowed users to click on an image of a department and the link took them to a document library which was pre-filtered to only show documents pertaining to that department. But, Quick Links does not support the extended url and strips all the filtering out which is pretty frustrating. I tried the HERO web part and it does the same.
Example URL
sites/MyDept/Shared%20Documents/Forms/AllItems.aspx ? id=%2Fsites%2FMyDept%2FShared%20Documents%2FPolicies%2DProcedures%2DForms&useFiltersInViewXml=1&FilterField1=Contoso%5Fx0020%5FDepartment&FilterValue1=Operations&FilterType1=Choice&FilterOp1=In
URL stripped in Quick Links and HERO to
/sites/MyDept/Shared Documents/Policies-Procedures-Forms
I managed to get this working using the Image Web Part but this displays in much larger tiles and ruins the aesthetics of the site.
What am I missing? Has anyone else managed to accomplish this? Seems pretty straightforward but I cannot understand why Quick Links and HERO do not supported filtered urls whereas the Image Web Part does.
Many thanks,
Colin2307
Jun 11 2019 06:49 AM
@Colin2307 I'm pretty sure that we haven't been able to pass a filter in Quick Links or the Hero web part but if you create the views you want and link directly to them, it should work fine.
Jun 11 2019 07:05 AM
@Colin2307 In on premise SP2013, we would run in to the same thing when trying to put a link with url query parameters into the left navigation - it would strip everything from the ? on. I'm giving this a low probability, but maybe try to use an absolute url - start it with https://<tenant>/sites/....... . In SP2013 it wouldn't strip off the parameters if we did absolute not relative.
Worth a shot :)
Jun 11 2019 07:15 AM
SolutionJun 11 2019 07:43 AM
Hello @Susan Hanley,
Many thanks for your prompt response. I did try creating a view and linking to that but the issue remains. The view ID gets stripped from the url (see below - ignore link formatting. I added additional spaces so you can see the entire link)
URL with View ID
https:// mysite.sharepoint.com/sites/HSEQ/Shared%20Documents/Forms/AllItems.aspx ? id=%2Fsites%2FHSEQ%2FShared%20Documents%2FPolices%2DProcedures%2DForms&useFiltersInViewXml=1&viewid=14b1c604%2D5d07%2D47c7%2Dad4f%2Dec251ffecede
How the system stores it
https:// mysite.sharepoint.com/sites/HSEQ/Shared%20Documents/Polices-Procedures-Forms
I am linking to a doc library in another site under but within the same site collection so not sure if this is an issue.
Jun 11 2019 07:44 AM
Hello @Robin Nilsson,
I am lining to another site within the same site collection so I am using absolute url in this case. Good shout though. Thank you.
Best regards,
Colin
Jun 11 2019 07:46 AM
Hello @Chris Webb,
Ah that's interesting. I didn't think of that. I will give that a try. Thank you Chris.
Best regards,
Colin
Jun 11 2019 07:48 AM
@Colin2307 Probably another reason not to use subsites! :) My next suggestion is a URL shortening service.
Jun 11 2019 07:51 AM
Hello @Susan Hanley,
Yes I agree :-). Tried the url shortening as recommended by you and Chris and it works a treat. Thank you @Susan Hanley and @Chris Webb very much.
Best regards,
Colin
Oct 18 2020 05:29 PM
Hey Team,
I know this original post was from 11 months ago but I have found the solution for this.
Microsoft have also been informed of the error.
If you want your links to work with full filtered info.
Take your full link paste it into Notepad
At the start https:// change this to http://
(Remove the S)
Then paste the link in, this will mean it does not strip your info.
Also when you click on the link it re-directs to the https:// page anyway.
Much cleaner than using external URL's
I was having this same issue and thought this might help some people
Apr 23 2021 11:38 AM
May 12 2021 02:10 AM
May 19 2021 07:30 PM
Jun 17 2021 09:26 AM
Jul 23 2021 04:05 AM
@Michael Malloy Thanks, great solution worked a treat. However is there a solution for doing the same to a sub-folder within the library? When I try it it takes my to the root folder of the library and not the sub-folder I would like.
Jun 11 2019 07:15 AM
Solution