-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 custom nav links #4387
Fix custom nav links #4387
Conversation
How do I know what's wrong with deploy/netlify? The deploy preview failed but I don't think it's because of my changes. |
I've just realized that the netlify deploy went wrong beacuse of the commit about the nav section as simple objects. |
@JedWatson can you please answer me? Or could you please invite me to the slack channel in order to discuss about theese questions? |
@mxstbr can you help me with this pull request? I have no access to the netlify logs (see my comments above) and I don't know what the problem is. |
@@ -69,7 +69,7 @@ describe('language', function () { | |||
}); | |||
var expected = 'zh-CN'; | |||
var req = mockRequest({ | |||
acceptLanguage: 'zh-CN;1,en-US;q=0.8' | |||
acceptLanguage: 'zh-CN;q=1,en-US;q=0.8' |
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.
Hey @frapan, sorry for the delay in getting back to you. The only thing I don't understand in your PR is the change to this file. Could you let me know what this is doing for us? I'd be happy to merge the other changes, just want to make sure I understand what's happening here.
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.
Thank you @blargity for your reply and I'm sorry as well for being late.
I had an error during tests because of that line, and I couldn't go on with the tests.
In fact, the syntax of acceptLanguage expects the weights of the languages to be written with ";q=", not simply ";".
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language as a reference.
@Noviny I agree with you. I've just added the documentation to the page you suggested. |
Description of changes
There are 3 bugs that get fixed with this pull request:
Related issues
The following issues are related to this pull request:
Testing
npm run test-all
ran successfully.