﻿
// =============================================================

// SECTION 21: v1.46 - Fix Polylang language switcher for /area-clienti/
// The Area Clienti page is virtual (template forced via template_include),
// so Polylang cannot resolve correct URLs in the language switcher.
// This filter forces correct URLs for both IT and EN versions.
add_filter('pll_the_languages', function($langs) {
    $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
    if (strpos($uri, '/area-clienti') === false) return $langs;
    foreach ($langs as &$lang) {
        if ($lang['slug'] === 'en') $lang['url'] = home_url('/en/area-clienti/');
        if ($lang['slug'] === 'it') $lang['url'] = home_url('/area-clienti/');
    }
    return $langs;
}, 999);
<?xml version="1.0" encoding="UTF-8"?><sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://framis.it/post-sitemap.xml</loc>
		<lastmod>2026-11-10T12:46:48+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/page-sitemap.xml</loc>
		<lastmod>2026-11-13T22:32:26+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/portfolio-item-sitemap.xml</loc>
		<lastmod>2017-11-08T15:29:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/team-member-sitemap.xml</loc>
		<lastmod>2017-10-03T13:37:08+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/product-sitemap.xml</loc>
		<lastmod>2026-11-26T08:08:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/category-sitemap.xml</loc>
		<lastmod>2026-11-10T12:46:48+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/post_tag-sitemap.xml</loc>
		<lastmod>2026-11-10T12:46:48+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/portfolio-category-sitemap.xml</loc>
		<lastmod>2017-11-08T15:29:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/portfolio-tag-sitemap.xml</loc>
		<lastmod>2017-10-23T12:21:18+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/team-category-sitemap.xml</loc>
		<lastmod>2017-10-03T13:37:08+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/testimonials-category-sitemap.xml</loc>
		<lastmod>2017-10-17T08:33:13+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/product_cat-sitemap.xml</loc>
		<lastmod>2026-11-26T08:08:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://framis.it/author-sitemap.xml</loc>
		<lastmod>2026-11-26T12:40:40+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->