Notifications
Clear all

File link on notification email is missing https: at beginning of URL

8 Posts
2 Users
0 Reactions
274 Views
Posts: 4
Topic starter
(@lelaurier)
Active Member
Joined: 4 weeks ago

Hi,

When the notificaton email is sent, I do include the [post_body]. If there is an attached file, it does show in the email as a link to the file.

In the email, the URL is missing the “https:”

Example : //lelaurier.net/xyz instead of https://lelaurier.net/xyz

How can I fix that ?


7 Replies
Sofy
Posts: 5734
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi,

Please attach a screenshot of the email content and let us know how the file is attached. Are you using the wpForo Advanced Attachments add-on?

Also, please provide a screenshot of the related post.


Reply
Posts: 4
Topic starter
(@lelaurier)
Active Member
Joined: 4 weeks ago

Hi Sofy,

I am not using wpForo Advanced Attachments add-on.

All URL links in the email do work fine. Only the URL of the file "Ordre-du-jour-du-27-janvier.docx" does not work.

The hyperlink is :

//lelaurier.net/wp-content/uploads/wpforo/default_attachments/1769516327-Ordre-du-jour-du-27-janvier.docx (see image - Outlook security message)

instead of :

https://lelaurier.net/wp-content/uploads/wpforo/default_attachments/1769516327-Ordre-du-jour-du-27-janvier.docx

My General settings are OK :

are both set to https://lelaurier.net/

Thanks in advance. Louis


Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5734

@lelaurier 

We'll check and get back to you soon. 


Reply
Sofy
Posts: 5734
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Dear @lelaurier.

Please find the answer from the developers team below: 

This is expected behavior and it’s OK.

When a URL starts with //domain.com/file, it’s a protocol-relative URL. The browser (or email client) automatically applies the correct protocol (http or https) based on the website or email context.

Because of this, it’s not necessary to explicitly add http:// or https://. The link will still work correctly and the file will be downloaded as expected when clicked.

 


Reply
Posts: 4
Topic starter
(@lelaurier)
Active Member
Joined: 4 weeks ago

Hi @sofy

You said "The link will still work correctly and the file will be downloaded as expected when clicked."

This is not true. It might do it on the website itself but not in email client. It does show errors in Outlook 365 ( see two attached images) and on my iPhone it just do nothing. All my users reported the same.

Why dont they put the HTTPS: ... they do it for all other links in the notfication email.

Could there be a workaround snippet that I could apply.

 

 


Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5734

@lelaurier 

I’ve discussed this question with our developers. Please find the team’s response below:

When the email is being sent, the email body is generated automatically. At this stage, there should be a hook available that can be used to add the protocol to the URLs.

In this case, we suggest contacting the PRO support team and asking them to review the issue and add the necessary customization via a hook.


Reply
Page 1 / 2