Question:

Filter list view with url parameter. Strange behavior in Internet Explorer (SharePoint 2013)

Ryan: 2 weeks ago

I have a link opening the listview AllItems.aspx with specific filter parameter in the url which works fine. But if the user tries to change the filter of the prefiltered column, e.g. by selecting "Include Descendants" or "Clear Filters from [ColumnName]" I get a strange behavior in Internet Explorer.

While it works in Firefox and the url parameters get changed, in Internet Explorer a set of (strange encoded) parameters will be added after the initial url paramters. The added paramters beginning with #InplviewHash will not be processed by the borwser and for the user nothing changes.

Example

Firefox

Initial URL:

/Lists/Articles/AllItems.aspx?FilterField1=Topics&FilterValue1=232&FilterOp1=In&FilterLookupId1=1&FilterData1=0%2C10da0eac-592c-4025-adf6-809c14811432

After selecting "Include Descendants":

/Lists/Articles/AllItems.aspx?FilterField1=Topics&FilterValue1=232%2C86&FilterOp1=In&FilterLookupId1=1&FilterData1=1%2C10da0eac-592c-4025-adf6-809c14811432&View={07B3C7B1-6A96-4007-A165-EACED7E8C3AC}

Internet Explorer

Initial URL:

/Lists/Articles/AllItems.aspx?FilterField1=Topics&FilterValue1=232&FilterOp1=In&FilterLookupId1=1&FilterData1=0%2C10da0eac-592c-4025-adf6-809c14811432

After selecting "Include Descendants":

/Lists/Articles/AllItems.aspx?FilterField1=Topics&FilterValue1=232&FilterOp1=In&FilterLookupId1=1&FilterData1=0%2C10da0eac-592c-4025-adf6-809c14811432#InplviewHash07b3c7b1-6a96-4007-a165-eaced7e8c3ac=CascDelWarnMessage%3D1-FilterField1%3DTopics-FilterValue1%3D232-FilterLookupId1%3D1-FilterOp1%3DIn-FilterData1%3D0%2C10da0eac--592c--4025--adf6--809c14811432

Does anyone have experiences with this behavior and knows how to solve it. Seems like this happens only in Internet Explorer, but I didn't test it in Chrome.

Thanks for help!

Answer:
Amelia: 2 weeks ago

The new page added in layouts folder "inplview.aspx". When paging, sorting or filtering happens there is an AJAX call to the inplview.aspx and it returns a JSON based result set. That is the rows of the defined list view webpart. The "inplview.aspx" generates the "inplviewhash" tag and appends it with "#" in url.