Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am working on a multilingual site. When a page is translated into another language Drupal actually creates a new page with a new ID, title, etc... I'm running into a lot of issues where page-specific code was written. Here's an example
"en/applications"!==c.location.pathname||c.location.hash||a(".block-menu-menu-solutions ul.tabs > li a")[0].click()
When Applications is translated into another language the URL changes and therefore the code won't work anymore. Is there a way to translate content but keep the title in the URL in the default language?
Comments