Giter Site home page Giter Site logo

Comments (6)

sebsylvester avatar sebsylvester commented on May 18, 2024 2

After doing some testing, I have learned that the malformed link is caused by the Mustache template rendering engine and not the parse server. It's actually not a "malformed" link, but just an html encoded version, and it still works in the browser. However, for plain-text emails (i.e. html templates are not configured) this is a problem, and the link will not work because the email client does not recognize it as such. This is something I will need to fix.

from parse-server-mailgun.

sebsylvester avatar sebsylvester commented on May 18, 2024

Hi Chris,
Thanks for the heads up. You're the first dev to report this issue, but I can imagine that more parse developers will experience the same problem as soon as they upgrade their app. I will have to dive into the parse server codebase to find out what's going on. When I do, I'll let you know.

from parse-server-mailgun.

LaChrome avatar LaChrome commented on May 18, 2024

I think I found the issue. On the dev server, I had the public server URL set to https:// , where only http was configured on the dev server, and there was no fallback to http, which meant that the public html link wasn't reachable online.

Changing the public server link to http fixed the issue.

So ... I assume this same behaviour would occur with any incorrect public server address. Not sure if a malformed link being created as a result is the most helpful haha, but that may be a separate issue...

Also, not sure at this point if it was a result of something in parse-server or the mailgun adapter.

Moral of the story: Get your public link correct ..... https or otherwise. :)

from parse-server-mailgun.

LaChrome avatar LaChrome commented on May 18, 2024

Nicely done. Cheers

from parse-server-mailgun.

sebsylvester avatar sebsylvester commented on May 18, 2024

I've updated the email templates. {{link}} => {{{link}}}
The extra curly brace prevents the html escaping. Problem solved :)

from parse-server-mailgun.

LaChrome avatar LaChrome commented on May 18, 2024

from parse-server-mailgun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.