I'm having a Simplenews newsletter template with a link guiding newsletter readers to a intranet site with more news.
<?php print l('hier.', 'node/' . $build['#node']->nid, array('absolute' => TRUE)); ?>
My problem now is, that if the user is not logged in, that link only brings him to the login site, where he is then stucked.
What would I have to do or what function would help me to somehow provide a link that redirects the not logged in user to the proper aim after logging in, and which would not affect the already logged in user?