Forum

How is computed the...
 
Notifications
Retirer tout

How is computed the variable ${url} in the mails templates?

3 Posts
2 Utilisateurs
0 Reactions
1,203 Vu
Sylvain Devidal
(@magicbuzz)
Posts: 38
Trusted Member
Début du sujet
 
[#9366]

Hello,

We are using the variable ${url} in the mails templates to add a direct link to the item (Ticket).

But the URI is :

https://http//server and path to ticket

I think the problem is about the way we host ProjeQtOr, as I already had similar issues with other programs.
Our ProjeQtOr server doesn't handle HTTPS, but we use a reverse proxy that actually forward the trafic using HTTPS.

As a result, the ProjeQtOr's server works with HTTP and doesn't have clue of the HTTPS provided by the reverse proxy.

So I think the defaut value is "http://server and path to ticket" and in the link as we set "https://" as prefix, it simply adds it in front of the http://

Is there a way to tell ProjeQtOr it is behind a reverse proxy so we actually use https:// even if the server itselft doesn't handle it?


 
Posté : 18/03/2024 3:01 pm
(@babynus)
Posts: 14952
Membre Admin
 

Try and add in parameters.php

$paramHttps='on'; 


 
Posté : 18/03/2024 5:15 pm
Sylvain Devidal
(@magicbuzz)
Posts: 38
Trusted Member
Début du sujet
 

Hello Babynus,

I tried to add this parameter, but it looks like it has no effect.

I found a workarround by updating the links in the mails models and removed the prefix "https://".
As a result, I have a link "http://path to ticket".
Next, on the reverse proxy I added a redirection rule http://* => https://* and it works fine.


 
Posté : 19/03/2024 5:25 pm
Share:
Retour en haut