Jump to content

Redirect to Page after Login from specific Link


Recommended Posts

Hello,

We would like to restrict access to the submitticket.php page to logged in users but still allow emails to come through from non-clients.

I'm using smarty to determine if the user is logged in and the providing a login link if they're not. The problem is, after they login, they aren't redirected back to the submitticket.php page.

{if !$loggedin }
<div class="row">
    <div class="col-md-10 col-sm-offset-1">
		<p>You must be logged in to open a ticket here. <a href="/login" class="btn btn-3d btn-primary">Login</a></p>
		<p>If you don't know your login, please open your ticket using our <a href="https://somewhere.else">public ticket page</a>.</p>
		
	</div>
</div>
{else}
...
{/if}

How do I redirect back to the submitticket.php page after successful login?

Thanks,
Joe

Edited by joedavis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated