Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-2643

When I insert last publications in a newsletter, content illustrations are not displayed

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.1, 3.2
    • 3.1.1, 3.2
    • None
    • None

      It is on the demo. The link to the content illustration is :

      <img src="http://localhost:8080/cms/_contents-images/ametys%253Asites/www/ametys-internal%253Acontents/honoris-causa---mike-stevens-actualite/_metadata/illustration/image_max100x100/Mn_16b.jpg?&contentVersion=1.4" alt="">

      My server is on the port 8082, maybe the port in the link is hardcoded.

          [CMS-2643] When I insert last publications in a newsletter, content illustrations are not displayed

          Need to add the request attribute _contextPath to empty (see the CMSContextInputModule.getAbsoluteContextPath(Map) function)

          Laurence Aumeunier added a comment - Need to add the request attribute _contextPath to empty (see the CMSContextInputModule.getAbsoluteContextPath(Map) function)

          The port is not hardcoded and "/cms" either.

          But it seems that the absolute site configuration concats the cms context path.

          Laurence Aumeunier added a comment - The port is not hardcoded and "/cms" either. But it seems that the absolute site configuration concats the cms context path.

          The absolute url comes from the site configuration, and it concatenates "/cms" to build the url, instead of taking the CMS url. However, it does not correct the images problem.

          Joel Vimenet (Inactive) added a comment - The absolute url comes from the site configuration, and it concatenates "/cms" to build the url, instead of taking the CMS url. However, it does not correct the images problem.

          It seem to be the same case with the "read more" that links to the localhost:8080.

          Joel Vimenet (Inactive) added a comment - It seem to be the same case with the "read more" that links to the localhost:8080.

            Unassigned Unassigned
            joel Joel Vimenet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: