MetaData navigation with URL filtering

Occasional Contributor

Hello community,

 

So i was opening my document library from my custom web app with passing column filters in URL (query string). Now i need to use metadata navigation heirarchy but problem with this is that once you navigate from one node to another (in metadata navigation) my URL filters are lost since SharePoint creates a new URL on each click and overwrite my custom URL. 

 

Now SharePoint does maintain column filters if you use key filters, I can not use key filters so is there a way i can construct a URL using some javascript that maintains both metadata navigation and my column filters at the same time if i navigate from node to another in metadata navigation?

 

@Juan Carlos González Martín, @Deleted, @Pieter Veenstra

 

3 Replies

Hi @Bilal Fazli,

 

What are you using these filters for. should I think about things like ?k=testsearchvalue to feed search result web parts?

Hi @Pieter Veenstra,

No I am using it to filter my default document library view where metadata navigations hiearchies are applied to show tree view on left panel.

Hi Bilal,

 

But would it not be possible to use different views or is you MM so big?

Have not been testing with MM on a column changing the query string.