My code doesn't let me move from 1 html page to the next.
dashboard.html:
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WealthGuardian Dashboard</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="styles.css"> <!-- Your custom styles file -->
</head>

<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <a class="navbar-brand" href="#">WealthGuardian</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
            aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" th:href="@{/dashboard}">Dashboard</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/transaction-history}">Transaction History</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/budget-management}">Budget Management</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/investments-tracker}">Investments Tracker</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/savings-goals}">Savings Goals</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/debt-overview}">Debt Overview</a>
            </li>
        </ul>
    </div>
</nav>

<div class="container mt-5">
    <div class="row">
        <div class="col-md-8">
            <h1>Welcome to your Dashboard</h1>
            <p>Here you can see a quick overview of your financial health.</p>
        </div>
        <div class="col-md-4">
            <div class="card">
                <div class="card-header">
                    Account Information
                </div>
                <div class="card-body">
                    <h5 class="card-title" th:text="${currentUser.account.accountName}"></h5>
                    <p class="card-text" th:text="${currentUser.account.accountType}"></p>
                    <p class="card-text" th:text="${currentUser.account.balance}"></p>
                </div>
            </div>
        </div>
    </div>

    <div class="row mt-4">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
                    Recent Transactions
                </div>
                <ul class="list-group list-group-flush">
                    <li class="list-group-item" th:each="transaction : ${transactions}">
                        <span th:text="${transaction.date}"></span> -
                        <span th:text="${transaction.type}"></span> -
                        <span th:text="${transaction.amount}"></span>
                    </li>
                </ul>
            </div>
        </div>
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
                    Budget Overview
                </div>
                <div class="card-body">
                    <h5 class="card-title">Monthly Budget</h5>
                    <p class="card-text">Your budget status: <span th:text="${budgetStatus}"></span></p>
                    <p class="card-text">Remaining budget: <span th:text="${remainingBudget}"></span></p>
                    <a th:href="@{/budget-management}" class="btn btn-primary">Go to Budget Management</a>
                </div>
            </div>
        </div>
    </div>

    <div class="row mt-4">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header">
                    Savings Goals
                </div>
                <div class="card-body">
                    <h5 class="card-title">Your Savings Goals</h5>
                    <ul class="list-group">
                        <li class="list-group-item">Goal 1: <span th:text="${savingsGoals[0].goalName}"></span> -
                            <span th:text="${savingsGoals[0].amount}"></span></li>
                        <li class="list-group-item">Goal 2: <span th:text="${savingsGoals[1].goalName}"></span> -
                            <span th:text="${savingsGoals[1].amount}"></span></li>
                        <!-- Add more goals as needed -->
                    </ul>
                    <a th:href="@{/savings-goals}" class="btn btn-primary mt-2">Go to Savings Goals</a>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="theme-switch-wrapper">
    <label class="theme-switch" for="checkbox">
        <input type="checkbox" id="checkbox" />
        <div class="slider round"></div>
    </label>
    <em>Enable Dark Mode!</em>
</div>

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="script.js"></script> <!-- Your JavaScript file -->
</body>

</html>
transaction-history.html:
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WealthGuardian - Transaction History</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="styles.css"> <!-- Your custom styles file -->
</head>

<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <a class="navbar-brand" href="#">WealthGuardian</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
            aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" th:href="@{/dashboard}">Dashboard</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/transaction-history}">Transaction History</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/budget-management}">Budget Management</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/investments-tracker}">Investments Tracker</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/savings-goals}">Savings Goals</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/debt-overview}">Debt Overview</a>
            </li>
        </ul>
    </div>
</nav>

<div class="container mt-5">
    <h1>Transaction History</h1>

    <table class="table table-striped">
        <thead>
        <tr>
            <th>Date</th>
            <th>Type</th>
            <th>Amount</th>
            <th>Description</th>
        </tr>
        </thead>
        <tbody>
        <!-- Iterate over transaction data -->
        <tr th:each="transaction : ${transactions}">
            <td th:text="${#dates.format(transaction.date, 'yyyy-MM-dd')}"></td>
            <td th:text="${transaction.type}"></td>
            <td th:text="${transaction.amount}"></td>
            <td th:text="${transaction.description}"></td>
        </tr>

        <!-- Example row if no transactions -->
        <tr th:if="${transactions.isEmpty()}">
            <td colspan="4" class="text-center">No transactions found.</td>
        </tr>
        </tbody>
    </table>
</div>

<div class="theme-switch-wrapper">
    <label class="theme-switch" for="checkbox">
        <input type="checkbox" id="checkbox" />
        <div class="slider round"></div>
    </label>
    <em>Enable Dark Mode!</em>
</div>

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="script.js"></script> <!-- Your JavaScript file -->
</body>

</html>