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

[FEATURE] add keepParameter option for domains #301

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

fvosberg
Copy link

if you are using 2 domains for 3 languages, you need to have the L parameter present for the pagepath. Now you have a keepParameter option for the _DOMAINS configuration, to prevent realurl from unsetting the lang param.

Example:

foobar.de/de/
foobar.de/en/
foobar.es

If you configure the _DOMAINS you loose the language param for page path decoding. To prevent this and leave the API backwards compatible, I've introduced a new option for the _DOMAINS section.

if you are using 2 domains for 3 languages, you need to have the L parameter present for the pagepath. Now you have a keepParameter option for the _DOMAINS configuration, to prevent realurl from unsetting the lang param
@dmitryd
Copy link
Owner

dmitryd commented Nov 24, 2016

If you configure the _DOMAINS you loose the language param for page path decoding

No, you do not. Path decoding only uses language variable. It is set here and later used at path decoding.

To prevent this and leave the API backwards compatible, I've introduced a new option for the _DOMAINS section.

"The API" for realurl does not exist. And realurl always removed that var. So there is nothing about compatibility here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants