For some reasons I need to use additional GET-Params in (localized) menu-links.

e.g
my-domain.com/de/contact?vid=3
my-domain.com/contact?vid=3

Setting up the menu link works as expected (Creating a menu link and clicking on it).
But if I switch the language by using the language switcher (when viewing "/contact" or "/de/contact") the GET-Params gets lost.

A bug?
Any hints are appreciated.

Comments

kasalla’s picture

no one?

kasalla’s picture

Issue summary: View changes

forgot to mention the language switcher

joseph.olstad’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Active » Fixed

See the site builder guide page for this:

Displaying and configuring a drop down using Language Switcher Dropdown

as for the get parameter,
See this tip about using get parameter .

$parameters = drupal_get_query_parameters();
if(isset($parameters['para']))
{
  $_SESSION['para'] = $parameters['para'];
}

#1303518: Clean up the issue tracker. Close old issues without follow up.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

joseph.olstad’s picture

for a working language switcher that retains get parameters, see this function, you can 'borrow' it.
https://cgit.drupalcode.org/wetkit_language/tree/wetkit_language.module?...