since NSSv5.1.6, searchIndex is used to check if index.html is part of a container.
All files including /profile/card should map to file url with $.extention
Actually in resource-mapper.mapUrlToFile, the check is made only if searchIndex is true, that is wrong.
in PR #1282 this exclusive point is corrected in resource-mapper.mapUrlToFile + added test
There should be a test to check that when searchIndex is false and there is an index.html in the folder then resource-mapper.mapUrlToFile(folder, searchIndex = false) returns folder and not folder/index.html.
since NSSv5.1.6,
searchIndexis used to check ifindex.htmlis part of a container.All files including
/profile/cardshould map to fileurl with $.extentionActually in resource-mapper.mapUrlToFile, the check is made only if searchIndex is true, that is wrong.
in PR #1282 this exclusive point is corrected in resource-mapper.mapUrlToFile + added test
There should be a test to check that when searchIndex is false and there is an index.html in the folder then
resource-mapper.mapUrlToFile(folder, searchIndex = false)returns folder and not folder/index.html.