Skip to content

dsfrRelatedFilesCmp - Impossible to download Entretien PRO files by clicking on link #17

Description

@skferrei31

Describe the bug
When logged in as any agent with access to Espace Evaluation, then going on any Entretien Professionnel et de Formation page, it is currently impossible to download the generated pdf files for both Entretien Professionnel & Entretien de formation.

To Reproduce
Steps to reproduce the behavior:

  1. Login as an agent with access to Espace Evaluation.
  2. Go to an Entretien Professionnel et de Formation page or Entretien de mes agents page as a hierarchical superior.
  3. If there aren't any links already, click on one of the buttons then on the refresh icon shown to generate a link to a pdf file.
Image
  1. Click on one of the generated links. It redirects to an error page instead of downloading the file.
Image

Expected behavior
The file should download normally without opening an error page.

Solution
To make the expected behavior work correctly, the correction I found is to correct the link generated in this component as follows:

Image Adding "/sfsites/c/" seems to correct the issue and trigger the file download, I successfully tested it manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions