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

Fixed a plus one error with options.detectLngFromPath #121

Merged
merged 1 commit into from
Apr 19, 2014

Conversation

paulgrock
Copy link
Contributor

I'm having an issue with options.detectLngFromPath returning undefined if I specifc detectLngFromPath: 1 in the init options when trying to redirect.

The use case is trying to redirect from / to /foo/:lng.

The issue is the options.deteLngFromPath + 1 isn't defined even though it is less than parts.length.

@jamuhl
Copy link
Member

jamuhl commented Dec 19, 2013

thanks for finding and submitting a PR. will be merged for next version.

jamuhl added a commit that referenced this pull request Apr 19, 2014
Fixed a plus one error with options.detectLngFromPath
@jamuhl jamuhl merged commit 945aad7 into i18next:master Apr 19, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants