Skip to content

Commit c953453

Browse files
committed
Updated admin_url config to override cp_url
1 parent 957c148 commit c953453

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
php artisan test
104104
105105
- name: Archive Laravel errors
106-
uses: actions/upload-artifact@v3
106+
uses: actions/upload-artifact@v4
107107
if: failure()
108108
with:
109109
name: laravel${{ matrix.containers }}-php${{ matrix.php }}.log

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Fixed
6+
7+
- Prolet and other ExpressionEngine Control Panel URLs were using old admin route
8+
59
## [2.0.0] - 2025-01-14
610

711
### Added

src/Bootstrap/LoadExpressionEngine.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@ public function bootstrap(Application $app)
207207
// Override ExpressionEngine error handler with Laravel
208208
(new \Illuminate\Foundation\Bootstrap\HandleExceptions)->bootstrap($app);
209209

210+
$baseUrl = Str::finish(ee()->config->item('base_url') ?: config('app.url'), '/');
210211
$configOverrides = [
211-
'base_url' => Str::finish(ee()->config->item('base_url') ?: config('app.url'), '/'),
212+
'base_url' => $baseUrl,
213+
'cp_url' => $baseUrl.ltrim(config('coilpack.admin_url', 'admin'), '/'),
212214
];
213215

214216
foreach ($configOverrides as $key => $value) {

0 commit comments

Comments
 (0)