How to fetch the Base URL in a plugin?
Is there a way for the plugins source code to be able to determine the current base URL value?
For example, I have Sisense behind a reverse proxy, where the root of the site resides at https://mysite.com/sisense. When defining URLs to fetch resources from the plugins folder, I want to be able to dynamically get the value of the baseURL. For example, https://mysite.com/sisense/plugins/my-plugin/some-resource.html. To my understanding, there is no REST API endpoint to get the base URL configuration parameter.
Please advise. Thanks!
Please sign in to leave a comment.
Comments
2 comments