Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Broken links in email template #6357

Open
2 tasks done
pietrodicaprio opened this issue Sep 28, 2023 · 6 comments
Open
2 tasks done

🐛 Bug Report: Broken links in email template #6357

pietrodicaprio opened this issue Sep 28, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@pietrodicaprio
Copy link

👟 Reproduction steps

Send an email like password recovery

👍 Expected behavior

The antispam should not find broken links

👎 Actual Behavior

The two preconnect links at the beginning of the email template are providing 404

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

This is causing the loss of one point at antispam level
image

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

Standard AW Cloud environment

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@pietrodicaprio pietrodicaprio added the bug Something isn't working label Sep 28, 2023
@stnguyen90 stnguyen90 changed the title 🐛 Bug Report: 🐛 Bug Report: Broken links in email template Sep 28, 2023
@aakashdeepsil
Copy link

Hi team
I want to know more about this issue and get it assigned to me.
I'm participating in the Hacktoberfest and looking to contribute to open source.
I would appreciate all the guidance you can offer.

@pietrodicaprio
Copy link
Author

pietrodicaprio commented Sep 29, 2023

Hi team I want to know more about this issue and get it assigned to me. I'm participating in the Hacktoberfest and looking to contribute to open source. I would appreciate all the guidance you can offer.

Hi @aakashdeepsil , thank you for jumping in and willing to help :)

In my opinion, as external user, the thing to understand is why those two html elements have been added to the template. The quick solution would be to simply remove them but I'm sure that who put them there did it for a reason.
My 2 cents: you can maybe execute a blame on those rows and reach out to the author asking him to comment on this issue

This is the commit that adds those elements: bbf77dc
This is a resource that may provide a solution: https://stackoverflow.com/a/56845961/4193164

@aakashdeepsil
Copy link

@pietrodicaprio To me, the reproduction steps aren't very clear. Sorry if it's a dumb question. It's my first time working in open-source. I will like more detailed steps to reproduce this issue. It will help me understand the problem better. Appreciate the help.

@OgunmisiM
Copy link

Best thing to do to the link is to remove them.
I can help with that.

@pietrodicaprio
Copy link
Author

Guys, I really appreciate your willing to help but I'm able to simply remove the links and open a PR.
Moreover not having the "reproduction steps clear" is symptom of not knowing the product/project. In my opintion, wanting to rush on a solution just to participate to the hackaton/hacktober fest is not the correct method to help.

The point is: why have been added in the first place?
The question is mainly for @lohanidamodar that made the commit for the new templates.

Should we modify those two preconnect links as suggested in the Stackoverflow answer I linked? Was that the original idea? It could work for the fonts.googleapis.com but there is no "working link" for fonts.gstatic.com. Could it be better to import the font in the CSS section of the template via @import directive?

@aakashdeepsil
Copy link

@pietrodicaprio I understand and appreciate your feedback. Can you please guide me and help to know the product/project? Where and how should I get to know it better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants