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

Mail from comments is not well displayed

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.2, 3.2.1
    • None
    • None
    • None

      In live version, mail is ok.
      In on-line version, mail is not ok (fields seem to be mixed).

          [CMS-2691] Mail from comments is not well displayed

          Raphaël Franchet added a comment - - edited

          Ok, got it !

          The problem is the following:
          the mail is built using the following i18n pattern:
          * content name

          {0}

          * site name

          {4}
          * content url {1}
          * comment name {2}
          * comment content {3}

          but when the comment is pre-validated, the content url is taken from the "referer" header. This works fine on live (we are in direct) but not behind the front proxy...
          and adding null as an i18n parameter does nothing so : {2} becomes {1}... and nobody becomes {4}

          two ways for correcting this :
          1) tranfering the referer header on proxy
          2) adding an hidden field with the url in the comment form ; this solution may be a problem for those who have overriden the comment appearance (and I don't know if we can easily get it in a content xsl...)

          Raphaël Franchet added a comment - - edited Ok, got it ! The problem is the following: the mail is built using the following i18n pattern: * content name {0} * site name {4} * content url {1} * comment name {2} * comment content {3} but when the comment is pre-validated, the content url is taken from the "referer" header. This works fine on live (we are in direct) but not behind the front proxy... and adding null as an i18n parameter does nothing so : {2} becomes {1}... and nobody becomes {4} two ways for correcting this : 1) tranfering the referer header on proxy 2) adding an hidden field with the url in the comment form ; this solution may be a problem for those who have overriden the comment appearance (and I don't know if we can easily get it in a content xsl...)

          Live version :
          Un nouveau commentaire a été ajouté sur le contenu 'Organisation' du site 'www'.
          Cliquez ici pour visualiser le contenu http://localhost:8080/cms/live/www/fr/l-universite/organisation.html

          Commentaire de labadie :
          1er commentaire

          Online version :
          Un nouveau commentaire a été ajouté sur le contenu 'Organisation' du site ''.
          Cliquez ici pour visualiser le contenu anne-sophie

          Commentaire de 2ème commentaire :
          www

          Anne-Sophie Labadie (Inactive) added a comment - Live version : Un nouveau commentaire a été ajouté sur le contenu 'Organisation' du site 'www'. Cliquez ici pour visualiser le contenu http://localhost:8080/cms/live/www/fr/l-universite/organisation.html Commentaire de labadie : 1er commentaire Online version : Un nouveau commentaire a été ajouté sur le contenu 'Organisation' du site ''. Cliquez ici pour visualiser le contenu anne-sophie Commentaire de 2ème commentaire : www

            Unassigned Unassigned
            aslabadie Anne-Sophie Labadie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: