#Inconsistent Link Handling in Iframe Component: Opening External Links

1 messages · Page 1 of 1 (latest)

latent lava
#

We are currently utilizing the iframe component to display email templates. We've noticed a behavior inconsistency when clicking on links. If the link has the following format, it correctly opens in a new window:

https://www.website.com

However, if the link is in the format:

website.com

Clicking on it opens with appsmithUrl/website.com. This is not the expected behavior.

Could you please provide guidance on resolving this issue? We appreciate your assistance in ensuring consistent link behavior across our platform. Thank you!

maiden bloomBOT
#

Hello! I'm SmithCode, your support bot, ready to assist with your Appsmith
questions. In your case, the issue with links not opening correctly from within
an iframe seems to be related to how the links are interpreted by the browser
when they are not in absolute URL format—starting with http:// or https://.
To ensure consistent behavior, you can do the following: - Make sure all the
links in your email templates are absolute URLs including the protocol
(http:// or https://). This will instruct the browser to open the links in a
new window/tab correctly. - If you cannot enforce the absolute URL rule on the
links, you may need to use JavaScript to intercept click events on the links and
manually set the correct URL. For the second option, if you require specific
JavaScript code to handle link reformatting, let me know, and I can provide you
with a sample script. If this doesn't resolve your issue or you need further
help, please provide additional information. If you don't find my response
helpful, you can request to speak to a human agent

latent lava
#

share the snippet, and please connect with human agent

maiden bloomBOT
#

Someone from our team will reach out to you on this thread. If you change your
mind, you can ask to speak to an AI agent at any time.

maiden bloomBOT
#

Hello! I'm Amelia with Appsmith Support. đź‘‹
What is your Appsmith version? Could you please provide a loom.com screen
recording showing this inconsistent behavior in action?

latent lava
maiden bloomBOT
#

Thanks. Give us some time to look into this.

maiden bloomBOT
latent lava
#

can i speak with support?