-
Notifications
You must be signed in to change notification settings - Fork 163
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
base: main
Are you sure you want to change the base?
Conversation
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.
widget/.env.development
Outdated
@@ -0,0 +1 @@ | |||
BASE_TARGET="_parent" |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
@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. |
I agree that'd be even better! |
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.