-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
fix: include directoryPrefix when using autoPrefix #350
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -69,7 +69,7 @@ app.ready(function (err) { | |||
}) | |||
|
|||
app.inject({ | |||
url: '/semiautomatic/items' | |||
url: '/manualprefix/semiautomatic/items' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary due to the change in the fixture, or is this a breaking change?
Can you please not alter existing tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry. Yes it is breaking change.
The behaviour between dirNameRoutePrefix and autoPrefix was not properly defined in the docs before this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the intended behaviour in the changed test is to override directoryPrefix, but keep options.prefix
, I think a new exported option plugin.directoryOverride
would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's avoid a breaking change, thanks.
I'm encountering this issue myself, so might as well fix it.
Fixes #205
Checklist
npm run test
andnpm run benchmark
and the Code of conduct