// Build og:url to match canonical (include query string if lang parameter exists) $og_url = "https://www.paidwork.com" . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); if (isset($_GET['lang']) && !empty($_GET['lang'])) { $og_url .= '?lang=' . urlencode($_GET['lang']); } ?>