We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f8ff3 commit 750bfceCopy full SHA for 750bfce
.changeset/slimy-beans-end.md
@@ -0,0 +1,5 @@
1
+---
2
+'@blinkk/root-cms': patch
3
4
+
5
+fix: remove query params from url path check
packages/root-cms/core/plugin.ts
@@ -212,7 +212,7 @@ export function cmsPlugin(options: CMSPluginOptions): CMSPlugin {
212
* the URL path starts with /cms or if ?preview=true is in the URL.
213
*/
214
function loginRequired(req: Request): boolean {
215
- const urlPath = String(req.originalUrl).toLowerCase();
+ const urlPath = String(req.originalUrl).split('?')[0].toLowerCase();
216
// Allow the cron to run unauthenticated. The cron job is responsible
217
// for saving version history.
218
if (urlPath === '/cms/api/cron.run') {
0 commit comments