webhubworks / craft-ohdear

Craft Oh Dear provides deep integration into Craft CMS and saves developer's time by empowering editors.
https://plugins.craftcms.com/ohdear
Other
6 stars 3 forks source link

Broken Links to Reports in Headless Mode #40

Closed jorisnoo closed 1 year ago

jorisnoo commented 1 year ago

Hi again :) When running Craft in headless mode, the cpTrigger config is set to null. Unfortunately, opening the different reports from the Overview panel does not work, as the links are set to eg. /null/ohdear/uptime instead of /ohdear/uptime:

https://github.com/webhubworks/craft-ohdear/blob/ee78bb7a9dccf64a8ae8943675ca6bfee8dfe6e4/src/assetbundles/ohdear/src/js/resources/Check.js#L49

Thank you for all your effort on this plugin!

rostockahoi commented 1 year ago

Hey there, sorry for the delay.

To reproduce, do I only have to set cpTrigger to null and that's it?

jorisnoo commented 1 year ago

Yes, i think that should suffice to reproduce the issue. I'm using the following settings in general.php:

->cpTrigger(null)
->headlessMode()
rostockahoi commented 1 year ago

There is a new release 4.1.0 fixing the nullable cpTrigger issue. How it works for you.