nodebb-plugin-calendar icon indicating copy to clipboard operation
nodebb-plugin-calendar copied to clipboard

Settings do not save when NodeBB URL is within a directory

Open jtaylor69 opened this issue 2 years ago • 2 comments

As the following line is hardcoded to an absolute URL, the plugin settings cannot be saved as it tries to route to example.com/api/xx rather than example.com/forum/api/xx therefore the request fails.

https://github.com/pitaj/nodebb-plugin-calendar/blob/02de82029cc5450f046e2ee0196bea9bcc3da890/public/admin.js#L12

Can this be amended to return the forum URL in order to capture cases where the forum is either running on the root path or within a 'directory'?

Thanks, Jordan

jtaylor69 avatar Feb 14 '23 09:02 jtaylor69

Good catch. I'll try to get this fixed soon

pitaj avatar Feb 14 '23 16:02 pitaj

Still an issue ! When can we expect having this resolved ? Thanks

arkabase avatar Jun 08 '24 21:06 arkabase