Add support for permalink in mobile

Please review.