Skip to content

Commit

Permalink
Add redirect URL to a login link (Kimera)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Shunko authored and hubzero-admin committed Apr 14, 2020
1 parent 5647896 commit c743599
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/templates/kimera/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
$opacity2 = $this->params->get('colorSecondaryOpacity', '');
$bground = $this->params->get('backgroundImage', $this->params->get('background', 'delauney'));

// Current page (used by the login link)
$url = Request::getString('REQUEST_URI', '', 'server');

$styles = include_once __DIR__ . '/css/theme.php';
if ($styles)
{
Expand Down Expand Up @@ -111,7 +114,7 @@
</li>
<?php } else { ?>
<li class="user-account loggedout">
<a class="icon-login" href="<?php echo Route::url('index.php?option=com_users&view=login'); ?>" title="<?php echo Lang::txt('TPL_KIMERA_LOGIN'); ?>"><?php echo Lang::txt('TPL_KIMERA_LOGIN'); ?></a>
<a class="icon-login" href="<?php echo Route::url('index.php?option=com_users&view=login&return=' . base64_encode($url), false); ?>" title="<?php echo Lang::txt('TPL_KIMERA_LOGIN'); ?>"><?php echo Lang::txt('TPL_KIMERA_LOGIN'); ?></a>
</li>
<?php if ($this->params->get('registerLink') && Component::params('com_members')->get('allowUserRegistration')) : ?>
<li class="user-account-create">
Expand Down

0 comments on commit c743599

Please sign in to comment.