$protocol = 'https://';
}
- return $protocol . $_SERVER['HTTP_HOST'] . '/';
+ return $protocol . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/';
}
public function getLink (array $params = [], $query = '') {
<h3 class="panel-title">Please Sign In</h3>
</div>
<div class="panel-body">
- <form method="post" action="index.php?login">
+ <form method="post" action="{link controller='Login'}{/link}">
<fieldset>
<div class="form-group">
<input class="form-control" placeholder="Username" name="username" type="username" autofocus>