I have several websites built as "adaptive". If the user's browser is over 800px, they see the www.example.com version of the site (canonical); if the browser is under 800px, they see the m.example.com version of the site.
That is defined by a javascript in the head tag.
All internal links are absolute links.
Question: in the "m" subdomain, should I point my internal links (including the link to the homepage) to m.example.com or to www.example.com?
If I point them to www.example.com, the user will automatically be redirected to m.example.com from their mobile, and he / she will reach the intended page anyway.
If I point them to m.example.com, this may confuse search engines and desktop users who are being sent a link to my site by a mobile user.
What is the consensus?