<script type="text/javascript">
		const hashParams = window.location.hash;

		// PHP can't access hash params because they aren't sent to the server
		// If hashParams are found AND they have auth info, add them as query params and redirect
		if (hashParams && 
				hashParams.includes('code') &&
				hashParams.includes('id_token') &&
				hashParams.includes('state')
		) {
			const searchParams = window.location.search;
			let mergedParams = searchParams || '';

			// Add '?' if no searchParams
			// Add '&' if are searchParams
			mergedParams += (mergedParams.length === 0) ? '?' : '&';

			if (hashParams) {
				// Remove leading #
				mergedParams += hashParams.substr(1, hashParams.length);
			}

			const redirect = `${window.location.origin}${mergedParams}`;
			
			// Redirect to URL with query params
			window.location.href = redirect;
		}

	</script>
	<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://partnerhub.yageogroup.com/wp-sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://partnerhub.yageogroup.com/category/uncategorized/</loc></url></urlset>
