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

Set widget BASE_TARGET on ENV variables #224

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hcarreras
Copy link

It should be possible to decide where the widget's links should be open.

The PR makes it possible to set an ENV variable at build time to open the links in a new tab by setting BASE_TARGET to _blank.

It should be possible to decide where the widget's links should be open.
The PR makes it possible to set an ENV variable at build time to open the links in a new tab by setting BASE_TARGET to _blank.
@CLAassistant
Copy link

CLAassistant commented Aug 21, 2024

CLA assistant check
All committers have signed the CLA.

@@ -0,0 +1 @@
BASE_TARGET="_parent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this file

Copy link

@runephilosof-abtion runephilosof-abtion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. I want this feature.

@hrithikt
Copy link
Member

@hcarreras This looks useful.

However, wouldn't it be better to add this as an option under chatbot customizations? This way, users can choose whether the links should open in the parent window or in a new tab for each chatbot.

@hcarreras
Copy link
Author

I agree that'd be even better!
I'm a bit busy these days, so I'm unsure when/if I'll be able to make the changes.
Since this is an improvement over what's there already, what would you say about merging this and creating an issue request with the improvement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants