CLONE - when using AIMS, hash fragment pointing to file underneath of a folder is dropped on redirect

Description

When the Share application is configured to use AIMS with the configuration below

share-config-custom.xml as follow :

<!-- AIMS -->
<config evaluator="string-compare" condition="AIMS">
<enabled>true</enabled>
<realm>alfresco</realm>
<resource>alfresco</resource>
<authServerUrl>http://win-8g8jh6v0erd:8080/auth</authServerUrl>
<sslRequired>none</sslRequired>
<publicClient>true</publicClient>
<autodetectBearerOnly>true</autodetectBearerOnly>
<alwaysRefreshToken>true</alwaysRefreshToken>
<principalAttribute>email</principalAttribute>
<enableBasicAuth>true</enableBasicAuth>
</config>

When trying to access a document underneath a folder like below dispaying the content of the folder "testfolder" the filter after the character # is ignored

localhost:9999/share/page/site/training/documentlibrary#filter=path|%2Ftestfolder|&page=1

it is being directed to

localhost:9999/share/page/site/training/documentlibrary

AIMS is ignoring anything after # namely

filter=path|%2Ftestfolder|&page=1

Step to reproduce

1. configure ACS 6.2.2 to use AIMS and Share to use also the same authentication system

2. Open any site document library, then open a folder in this document library

3.Click on the folder to get the list of all document belonging to that folder

4. Copy from the browser URL generated

5.Open a new private window in the same browser and paste the URL

6.provide the credentials as required

7. check where the URL is being directed

Expected behavior

to be redirected to the folder

localhost:9999/share/page/site/training/documentlibrary#filter=path|%2Ftestfolder|&page=1

Actual results
redirected to
localhost:9999/share/page/site/training/documentlibrary

Environment

ACS 6.2.2 ,AIMS 1.3, shre using AIMS

Testcase ID

None
Incomplete
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Scott Ashcraft

Reporter

Clovis Kilobo

Escalated By

CSM

ACT Numbers

00350876

Premier Customer

Yes

Bug Priority

Category 3