Unable to redirect user to custom URL from ticket_top_navigation

Hello, I added a simple app to the ticket_top_navigation panel. I want to redirect the user to a custom URL (by now it is google.com) by clicking on this button. I added a simple logic for this, but I’m facing the following errors.

Screenshot 2023-01-31 at 15.02.14

Could you please advise if there are any tools to implement the required logic? How can I fix those errors?

Please see attached my project.

freshdesk.zip (45.3 KB)

Hey @Tetiana_Patsai,

Welcome to Freshworks Developer Community! :tada:

You can directly navigate to an external URL from the app because of CORS. You can rather use HTML anchor tags to open it in a new browser window.

<a href="https://www.google.com/" target="_blank">Navigate to Google</a>

Let me know if this helps!

1 Like

It works. Thank you for your help! :slight_smile:

1 Like

Thanks for confirming!

Cheers. :tada: