TB megamenu does not renders drupal language switcher links correctly when behind varnish caches

Created on 4 September 2024, 3 months ago
Updated 6 September 2024, 3 months ago

Problem/Motivation

TB megamenu does not render Drupal language switcher links correctly when behind varnish caches.

The language switcher block placed in the mega menu on the environment showing the language links as the random node pages of the website instead of its current language's URL of the homepage. The random node URL were showing on the links of the language switcher as below on the homepage:
1) www.example.com/ja/node/xxxx - For Japanese site
2) www.example.com/zh-hans/node/xxxx - For Chinese site
3) www.example.com/node/xxxx - For English site

Expected behavior should be:
1) www.example.com/ja - For Japanese site
2) www.example.com/zh-hans - For Chinese site
3) www.example.com - For English site

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India prashantgajare

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024