Skip to content

Commit

Permalink
fix: strict check for global route override
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Jul 9, 2024
1 parent 411729d commit 8ef674a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
];

// Register global routes, if enabled
if ($kirby->option('headless.globalRoutes', false)) {
if ($kirby->option('headless.globalRoutes', false) === true) {
$extensions['routes'] = require __DIR__ . '/src/extensions/routes.php';
}

Expand Down

0 comments on commit 8ef674a

Please sign in to comment.