Skip to content

/profile/card should not use searchIndex in resource-mapper.mapUrlTofile #1297

Description

@bourgeoa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions