-
Notifications
You must be signed in to change notification settings - Fork 35
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
Option to disable directory index routing #9
base: master
Are you sure you want to change the base?
Option to disable directory index routing #9
Conversation
Any word on the possibility of incorporating some of the open Pull Requests? Thanks. 😄 |
This issue is affecting me when using Bolt CMS (a Silex application) disabling the routing in the code allows my '/' tests to pass. Leaving it in gives require_once errors on the vendor/autoload.php file. |
maybe instead of new parameter would be better to add a special case for |
@tiger-seo This makes sense. I'd be happy with that as an option. |
@tiger-seo I tried messing with it a bit to update this PR to match your recommendation but am having an issue.
Because of this using A way around this would be to use Any idea what's going on here? Is Codeception converting the configuration data? Thanks. |
yes, first of all it should be readable and understandable for users |
👍 sounds good to me. Will work on that patch |
fantastic 👍 thanks |
375ef0b
to
1f5216b
Compare
The `directoryIndex` can now receive `false` to NOT pass back a directory index from the router. The key passed to the router is `noDirectoryIndex` since `off` was getting converted to an empty string.
1f5216b
to
66eb0b4
Compare
@tiger-seo This PR has been updated to match your recommendation. Only issue I ran into was that Let me know if this works for you or if you'd like any changes. |
794932d
to
e0509bb
Compare
ae1ad2e
to
a79b3e4
Compare
In some frameworks, passing index.php, or the directory index back from the router would cause "/" to fail to load a page since it's passing back the output of the directory index.
Some frameworks, like Zend Framework 1 don't behave properly when index.php is passed back.
This adds
false
detection todirectoryIndex
configuration parameter. The values passed to the router isnoDirectoryIndex
sinceoff
was getting converted to an empty string.