I've created a mobile page for my site using a subdomain.
normal page: http://www.mypage.com
mobile page: http://www.mypage.com/m
This mobile part of the website contains share functions towards Facebook and Twitter.
When I integrate the share functions I made use of <?php the_permalink(); ?> but of course this refers towards the mobile. So the output is http://www.mypage.com/m/link-to-the-post in Facebook and Twitter.
But I want this to refer directly to my normal page: http://www.mypage.com/link-to-the-post.
How can I change or make use of the <?php the_permalink(); ?> in such a way that this refers to my normal page.
Facebook code I use now: <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?> &t=<?php wp_title(); ?>" target="blank">
Twitter code I use now: <a href="https://twitter.com/share" data-url="<?php the_permalink(); ?>" target="blank">