Skip to content

fix: update language detection to use current URL instead of permalink#34

Open
fabrizim wants to merge 1 commit intoLocalize:masterfrom
fabrizim:bugfix/fix-non-single-urls
Open

fix: update language detection to use current URL instead of permalink#34
fabrizim wants to merge 1 commit intoLocalize:masterfrom
fabrizim:bugfix/fix-non-single-urls

Conversation

@fabrizim
Copy link
Copy Markdown

get_permalink will not work for all urls on the site as not all urls are for singular objects. Added a "getCurrentURL" function to return the actual URL visited. This fixes issues where the language was not being detected properly for index/archive pages

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.

1 participant