Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON data requested from root even when app installed in subfolder. #6

Closed
tuupola opened this issue Oct 14, 2013 · 1 comment
Closed

Comments

@tuupola
Copy link

tuupola commented Oct 14, 2013

I have a Slim 2.3.2 app installed in subfolder in dev.example.com/foo/ Nothing appears to Clockwork extension pane.

I can access the json data from dev.example.com/foo/__clockwork/id. However I can see from the logs Clockwork extension is trying to retrieve the data from root.

dev.example.com ::1 - - [14/Oct/2013:22:37:19 +0300] "GET http://dev.example.com/__clockwork/1381779436.7567.898323514 HTTP/1.1" 404 235

Workaround is to have a hook which sends the correct path in X-Clockwork-Path header.

$app->hook("slim.before", function() use ($app) {
    $app->response->headers->set("X-Clockwork-Path", "/foo/__clockwork/");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants