On my website currently only one content type gets translated and is therefore available in multiple languages. On this content type/page all the links (logo, menu, footer, etc.) refer to their language version of the current language.
E.g.: I'm currently on the french version of the page. The URL looks like this: "/fr/translated-node.html". Now all the links in the menu or footer look like this: "/fr/some-page.html".
But it shouldn't be like this. All the links on this page should always look like this: "/some-page.html". So without the language code at the beginning.
How can I achieve that programmatically?