Closed bo-oz closed 5 years ago
Hey @bo-oz, are you able to reproduce with a fresh app?
This happens when AhoyEmail.api = true
hasn't been set in an initializer. I assumed the value was for the purpose of setting up endpoints which respond to the generated URLs (which in my case happens in a separate application), but evidently it also plays a role in how to generate that URL.
Thanks for the update @maxxsnake. That makes sense, since there's no way to know the path if the engine isn't mounted. I'm surprised Rails doesn't throw an error in this situation. Ahoy Email could throw an error, but after a quick search, I'm not sure there's a good way to tell if a Rails engine is mounted.
Hi,
The open tracking pixel is rendered like
/messages/SomeKindOfToken/open.gif
, while the actual route that seems to be created by default in my app is:/ahoy/messages/SomeKindOfToken/open/gif
. Is this a bug, or should I configure it differently somehow?Thanks.