Hello @lenav7
Thank you for the support topic, As we checked your site you see seem to be using Transitional Mode with recommended (?amp=1
) URL structure, by default AMP will not be served as a Desktop site instead, the normal Page (non-AMP page) is served on the desktop.
If you have enabled mobile redirection from AMP settings it will redirect non-AMP pages to AMP only on Mobile devices.
If you have used/added reference to a link with ?amp=1
parameter it will open those links on AMP even on desktop.
However, you can use the following code snippet in your theme’s functions.php or in a custom plugin to redirect AMP pages on desktop to non-AMP pages.
add_action(
'wp',
function() {
if ( ( function_exists( 'amp_is_request' ) && amp_is_request() ) && ( function_exists( 'amp_is_available' ) && amp_is_available() ) && ! wp_is_mobile() ) {
wp_safe_redirect( esc_url( remove_query_arg( 'amp' ) ), 302 );
exit;
}
}
);