CINXE.COM

Redirecting...

<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="robots" content="noindex"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Redirecting...</title> <script> document.addEventListener( "DOMContentLoaded", function() { // List of the parameters that will be processed and/or (re)used const paramOptions = [ 'id', 'referrer', 'ft' ]; // List of the optional forward hash values const hashOptions = [ '', '#/survey/' ]; // List of the forward paths const forwardPaths = [ 'assistance-service-feedback', 'information-service-feedback', 'online-procedure-feedback' ]; // Redirection mapping const redirectMap = { 'assist-service': [ 0, [ 0, 1 ], 0 ], // [ 0 = forward path, 1 = [ optional params to forward ], 2 = optional hash to add ] 'assist-service/survey-long': [ 0, [ 0, 1 ], 1 ], 'info-service-ft': [ 1, [ 1 ], 0 ], 'info-service-ft/survey-long': [ 1, [ 1 ], 1 ], 'info-service-noft': [ 1, [ 2, 1 ], 0 ], 'info-service-noft/survey-long': [ 1, [ 2, 1 ], 1 ], 'online-proc-ft': [ 2, [ 1 ], 0 ], 'online-proc-ft/survey-long': [ 2, [ 1 ], 1 ], 'online-proc-noft': [ 2, [ 2, 1 ], 0 ], 'online-proc-noft/survey-long': [ 2, [ 2, 1 ], 1 ] }; // Get the current URL path and query const currentPath = window.location.pathname.replace( /\/+/g, '/' ).replace( /^\//, '' ).replace( /\/$/, '' ); const currentQuery = window.location.search; // Domain/prefix to forward to const redirectDomain = window.location.host == 'foq.youreurope.europa.eu' ? 'europa.eu' : 'www.acceptance.europa.eu'; const forwardURLBase = 'https://' + redirectDomain + '/youreurope/'; // Function to extract individual parameters const getParamValByName = ( name ) => { name = name.replace( /[\[]/, '\\[' ).replace( /[\]]/ , '\\]' ); const regex = new RegExp( '[\\?&]' + name + '=([^&#]*)' ); const value = regex.exec( currentQuery ); return value == null ? !1 : value[1]; } // Check if current path is usable, else redirect to URL base if ( currentPath ) { // Challenge for a corresponding mapping const targetMap = redirectMap[ currentPath ]; // If corresponding mapping, then process, else redirect to URL base if ( targetMap ) { // Start the setting of the forward URL let forwardURL = forwardURLBase + forwardPaths[ targetMap[0] ] + '/'; // Specify the language version if valid lang parameter if ( currentQuery ) { const lang = getParamValByName( 'lang' ); if ( lang && lang.match( /^[a-zA-Z][a-zA-Z]$/ ) ) { forwardURL += 'index_' + lang.toLowerCase() + '.htm'; } } // Add the needed parameters to the forward URL let nextParam = !1; for ( let i = 0; i < targetMap[1].length; i++ ) { const index = targetMap[1][i]; const param = paramOptions[ index ]; let paval = getParamValByName( param ); if ( param == 'referrer' && !paval ) { const ref_url = getParamValByName( 'referer_url' ); paval = ref_url ? ref_url : document.referrer === '' ? !1 : document.referrer; } const value = index != 2 ? currentQuery ? paval : !1 : 'no'; if ( value ) { forwardURL += ( nextParam ? '&' : '?' ) + param + '=' + value; nextParam = 1; } } // Add parameter to track the redirection on Your Europe's end forwardURL += ( nextParam ? '&' : '?' ) + 'rd=foq'; // Add the needed hash value ('#/survey/' or empty) forwardURL += hashOptions[ targetMap[2] ]; // Redirect to the new composed URL window.location.replace( forwardURL ); } else { // Redirect to URL base window.location.replace( forwardURLBase ); } } else { // Redirect to URL base window.location.replace( forwardURLBase ); } }); </script> </head> <body> <p>Redirecting to the new URL...</p> </body> </html>