Google should index the final page after redirect and should ignore the maindomain. Instead of https://domain.com/ there should be to indexes https://domain.com/de or https://domain.com/en depending of google context (google.ch/de or google.com)
To Define
Make sure the that the initial redirect from maindomain to language context has the flag , this should prevent google to index the maindomain.
Given Scenario
https://domain.com/
de
anden
en
Current Result
Default Request
Depending on your browser settings you should be redirected to /de or /en Google indexes https://domain.com/ instead of https://domain.com/de or https://domain.com/en
Desired Result
Default Request
Google should index the final page after redirect and should ignore the maindomain. Instead of https://domain.com/ there should be to indexes https://domain.com/de or https://domain.com/en depending of google context (google.ch/de or google.com)
To Define