SOLVED

Quick Links - Linking to a Filtered Document Library

%3CLINGO-SUB%20id%3D%22lingo-sub-682860%22%20slang%3D%22en-US%22%3EQuick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-682860%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMost%20of%20our%20SP%20site%20is%20setup%20using%20Quick%20Links%20and%20the%20Grid%20view.%20This%20gives%20a%20nice%20size%20of%20image%20and%20a%20consistent%20feel%20to%20the%20site.%20However%2C%20I%20recently%20wanted%20to%20create%20a%20new%20page%20that%20allowed%20users%20to%20click%20on%20an%20image%20of%20a%20department%20and%20the%20link%20took%20them%20to%20a%20document%20library%20which%20was%20pre-filtered%20to%20only%20show%20documents%20pertaining%20to%20that%20department.%20But%2C%20Quick%20Links%20does%20not%20support%20the%20extended%20url%20and%20strips%20all%20the%20filtering%20out%20which%20is%20pretty%20frustrating.%20I%20tried%20the%20HERO%20web%20part%20and%20it%20does%20the%20same.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EExample%20URL%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CU%3E%3CFONT%20color%3D%22%230b0117%22%3E%3CFONT%3Esites%2FMyDept%2FShared%2520Documents%2FForms%2FAllItems.aspx%20%3F%20id%3D%252Fsites%252FMyDept%252FShared%2520Documents%252FPolicies%252DProcedures%252DForms%26amp%3BuseFiltersInViewXml%3D1%26amp%3BFilterField1%3DContoso%255Fx0020%255FDepartment%26amp%3BFilterValue1%3DOperations%26amp%3BFilterType1%3DChoice%26amp%3BFilterOp1%3DIn%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CFONT%3EURL%20stripped%20in%20Quick%20Links%20and%20HERO%20to%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CFONT%3E%2Fsites%2FMyDept%2FShared%20Documents%2FPolicies-Procedures-Forms%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20managed%20to%20get%20this%20working%20using%20the%20Image%20Web%20Part%20but%20this%20displays%20in%20much%20larger%20tiles%20and%20ruins%20the%20aesthetics%20of%20the%20site.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20am%20I%20missing%3F%20Has%20anyone%20else%20managed%20to%20accomplish%20this%3F%20Seems%20pretty%20straightforward%20but%20I%20cannot%20understand%20why%20Quick%20Links%20and%20HERO%20do%20not%20supported%20filtered%20urls%20whereas%20the%20Image%20Web%20Part%20does.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%2C%3C%2FP%3E%3CP%3EColin2307%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-682860%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683204%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683204%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F358029%22%20target%3D%22_blank%22%3E%40Colin2307%3C%2FA%3E%26nbsp%3BI'm%20pretty%20sure%20that%20we%20haven't%20been%20able%20to%20pass%20a%20filter%20in%20Quick%20Links%20or%20the%20Hero%20web%20part%20but%20if%20you%20create%20the%20views%20you%20want%20and%20link%20directly%20to%20them%2C%20it%20should%20work%20fine.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683249%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683249%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F358029%22%20target%3D%22_blank%22%3E%40Colin2307%3C%2FA%3E%26nbsp%3B%20In%20on%20premise%20SP2013%2C%20we%20would%20run%20in%20to%20the%20same%20thing%20when%20trying%20to%20put%20a%20link%20with%20url%20query%20parameters%20into%20the%20left%20navigation%20-%20it%20would%20strip%20everything%20from%20the%20%3F%20on.%20I'm%20giving%20this%20a%20low%20probability%2C%20but%20maybe%20try%20to%20use%20an%20absolute%20url%20-%20start%20it%20with%20https%3A%2F%2F%3CTENANT%3E%2Fsites%2F.......%20.%20In%20SP2013%20it%20wouldn't%20strip%20off%20the%20parameters%20if%20we%20did%20absolute%20not%20relative.%3C%2FTENANT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWorth%20a%20shot%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683276%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683276%22%20slang%3D%22en-US%22%3EI%20wrote%20a%20blog%20with%20something%20similar%2C%20but%20you%20should%20be%20able%20to%20use%20URL%20shortening%20tool%20is%20how%20I%20get%20around%20these%20for%20the%20time%20being.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwebbtech365.blogspot.com%2F2018%2F11%2Fuse-mailto-and-other-link-types-with.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwebbtech365.blogspot.com%2F2018%2F11%2Fuse-mailto-and-other-link-types-with.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683333%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683333%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F149%22%20target%3D%22_blank%22%3E%40Susan%20Hanley%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%20for%20your%20prompt%20response.%20I%20did%20try%20creating%20a%20view%20and%20linking%20to%20that%20but%20the%20issue%20remains.%20The%20view%20ID%20gets%20stripped%20from%20the%20url%20(see%20below%20-%20ignore%20link%20formatting.%20I%20added%20additional%20spaces%20so%20you%20can%20see%20the%20entire%20link)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EURL%20with%20View%20ID%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CFONT%3Ehttps%3A%2F%2F%20mysite.sharepoint.com%2Fsites%2FHSEQ%2FShared%2520Documents%2FForms%2FAllItems.aspx%20%3F%20id%3D%252Fsites%252FHSEQ%252FShared%2520Documents%252FPolices%252DProcedures%252DForms%26amp%3BuseFiltersInViewXml%3D1%26amp%3Bviewid%3D14b1c604%252D5d07%252D47c7%252Dad4f%252Dec251ffecede%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EHow%20the%20system%20stores%20it%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CFONT%3Ehttps%3A%2F%2F%20mysite.sharepoint.com%2Fsites%2FHSEQ%2FShared%2520Documents%2FPolices-Procedures-Forms%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EI%20am%20linking%20to%20a%20doc%20library%20in%20another%20site%20under%20but%20within%20the%20same%20site%20collection%20so%20not%20sure%20if%20this%20is%20an%20issue.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683334%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683334%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F189854%22%20target%3D%22_blank%22%3E%40Robin%20Nilsson%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20lining%20to%20another%20site%20within%20the%20same%20site%20collection%20so%20I%20am%20using%20absolute%20url%20in%20this%20case.%20Good%20shout%20though.%20Thank%20you.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EColin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683337%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683337%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAh%20that's%20interesting.%20I%20didn't%20think%20of%20that.%20I%20will%20give%20that%20a%20try.%20Thank%20you%20Chris.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EColin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683340%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683340%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F358029%22%20target%3D%22_blank%22%3E%40Colin2307%3C%2FA%3E%26nbsp%3BProbably%20another%20reason%20not%20to%20use%20subsites!%20%3A)%3C%2Fimg%3E%20My%20next%20suggestion%20is%20a%20URL%20shortening%20service.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683342%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683342%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F149%22%20target%3D%22_blank%22%3E%40Susan%20Hanley%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20I%20agree%20%3A-).%20Tried%20the%20url%20shortening%20as%20recommended%20by%20you%20and%20Chris%20and%20it%20works%20a%20treat.%20Thank%20you%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F149%22%20target%3D%22_blank%22%3E%40Susan%20Hanley%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3Bvery%20much.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EColin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1793903%22%20slang%3D%22en-US%22%3ERe%3A%20Quick%20Links%20-%20Linking%20to%20a%20Filtered%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1793903%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F358029%22%20target%3D%22_blank%22%3E%40Colin2307%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHey%20Team%2C%3C%2FP%3E%3CP%3EI%20know%20this%20original%20post%20was%20from%2011%20months%20ago%20but%20I%20have%20found%20the%20solution%20for%20this.%3C%2FP%3E%3CP%3EMicrosoft%20have%20also%20been%20informed%20of%20the%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20want%20your%20links%20to%20work%20with%20full%20filtered%20info.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETake%20your%20full%20link%20paste%20it%20into%20Notepad%3C%2FP%3E%3CP%3EAt%20the%20start%20https%3A%2F%2F%20change%20this%20to%20http%3A%2F%2F%3C%2FP%3E%3CP%3E(Remove%20the%20S)%3C%2FP%3E%3CP%3EThen%20paste%20the%20link%20in%2C%20this%20will%20mean%20it%20does%20not%20strip%20your%20info.%3C%2FP%3E%3CP%3EAlso%20when%20you%20click%20on%20the%20link%20it%20re-directs%20to%20the%20https%3A%2F%2F%20page%20anyway.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMuch%20cleaner%20than%20using%20external%20URL's%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20having%20this%20same%20issue%20and%20thought%20this%20might%20help%20some%20people%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

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

12 Replies

@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.

@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 :)

best response confirmed by Colin2307 (Occasional Contributor)
Solution
I wrote a blog with something similar, but you should be able to use URL shortening tool is how I get around these for the time being.

https://webbtech365.blogspot.com/2018/11/use-mailto-and-other-link-types-with.html

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. 

 

 

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

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

@Colin2307 Probably another reason not to use subsites! :) My next suggestion is a URL shortening service.

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

@Colin2307 

 

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

Ok so here's the deal...If you want to get the "clean" absolute url for any list/library view in SharePoint Online follow these steps:

1. Visit the view to which you want to point users
2. In the view drop down, select "Edit Current View"
3. On the edit view screen - DON'T DO ANYTHING - just click on "cancel"
4. The absolute url will now be in the address bar (not that crazy ridiculously long thingy from before)
5. Copy this url and paste it into the Quick Links/Hero/Image/Button web parts and you should be good to go

I actually just got off the phone with MS Premiere support on this very issue and they said the workaround is to edit the end of the default view url and type in the words from the title of the view. I tried to explain to the rep that this was prone to errors because view URL's don't update automatically when someone edits the name of a view. It also doesn't work for views that were created with dashes in the name as the URL strips those out.

So to recap....just edit the current view, then cancel to grab a URL that will work in web parts.

I really hope this helps someone save a bunch of time...if you find any holes in my solution, please feel free to let me know.

Lastly, if this actually works for you, please mark it as a solution if possible.

Brilliant. This worked for me... after hours of searching.
Great solution! Annoying issue though ....