Skip to content

Commit 876421c

Browse files
committed
Use prefix in path
1 parent f698b3f commit 876421c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LaravelDebugbar.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,9 @@ protected function selectStorage(DebugBar $debugbar)
843843

844844
protected function addClockworkHeaders($response)
845845
{
846+
$prefix = $this->app['config']->get('debugbar.route_prefix');
846847
$response->headers->set('X-Clockwork-Id', $this->getCurrentRequestId(), true);
847848
$response->headers->set('X-Clockwork-Version', 1, true);
848-
$response->headers->set('X-Clockwork-Path','/_debugbar/clockwork/', true);
849+
$response->headers->set('X-Clockwork-Path', $prefix .'/clockwork/', true);
849850
}
850851
}

0 commit comments

Comments
 (0)