Fix redirect issues
Dashboard button now correctly redirects to login page if user is not logged in while login page redirects to dashboard the other way around.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
{% block title %}zero2prod{% endblock %}
|
||||
</title>
|
||||
<link href="/assets/css/main.css" rel="stylesheet" />
|
||||
<script src="../assets/js/htmx.min.js"></script>
|
||||
<script src="/assets/js/htmx.min.js"></script>
|
||||
</head>
|
||||
<body class="bg-gray-50 min-h-screen flex flex-col">
|
||||
<header class="bg-white shadow-sm border-b border-gray-200 top-0 z-40">
|
||||
@@ -24,6 +24,7 @@
|
||||
</div>
|
||||
<nav>
|
||||
<a href="/admin/dashboard"
|
||||
hx-boost="true"
|
||||
class="bg-blue-600 text-white hover:bg-blue-700 px-4 py-2 rounded-md text-sm font-medium transition-colors">
|
||||
Dashboard
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user