Change Chatwoot Base URL inside Liferay to support self-hosted version

Jamie Sammons, modified 3 Years ago. New Member Posts: 5 Join Date: 5/13/21 Recent Posts

Hi all,

Liferay (7.4) automatically assumes that Click To Chat provider Chatwoot is hosted on app.chatwoot.com [1],

So I was wondering if there is a way to change that Base URL in that JSP File and point to a self-hosted version of Chatwoot [2] which works also exactly using the same method and process.

Any comments or thoughts would be appreciated.

Best Regards,

[1] https://github.com/liferay/liferay-portal/blob/master/modules/apps/click-to-chat/click-to-chat-web/src/main/resources/META-INF/resources/dynamic_include/chatwoot.jsp

[2] https://www.chatwoot.com/deploy/

 

thumbnail
Mohammed Yasin, modified 3 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts

Hi ,

As it is hardcoded, you may need to create JSP fragment hook for that and update your url.

https://help.liferay.com/hc/en-us/articles/360029122451-JSP-Overrides-Using-OSGi-Fragments

 

thumbnail
Russell Bohl, modified 3 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

This was also asked (and answered) in slack (link). Serge, if you ask in both places please take it upon yourself to keep the info synced so that people don't duplicate assistance.