Skip to content

Commit

Permalink
fixed links with locale in sidebar and navbars
Browse files Browse the repository at this point in the history
  • Loading branch information
carvalholuigi25 committed Oct 31, 2023
1 parent 5cf72d6 commit ce76ff6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/components/admin/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function NavbarAdmin() {
<button className="btn" type="button" data-bs-toggle="offcanvas" data-bs-target="#menuAdmDashLinks" aria-controls="menuAdmDashLinks">
<i className="bi bi-list"></i>
</button>
<a className="navbar-brand ms-3" href="/" dir="auto">LCP</a>
<a className="navbar-brand ms-3" href={`/${localStorage.getItem("lang")}`} dir="auto">LCP</a>
<button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarAdmDash" aria-controls="navbarAdmDash" aria-expanded="false" aria-label="Toggle navigation" onClick={clickNav}>
<i className={`bi bi-${isCollapsed ? "x" : "three-dots"}`}></i>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/components/admin/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function SidebarAdmin() {
<>
<div className={`offcanvas offcanvas-start ${!!isCollapsed ? "show sidebarCol" : "hiding"} ${admstyles.menuAdmDashLinks}`} tabIndex={-1} id="menuAdmDashLinks" aria-labelledby="menuAdmDashLinksLabel">
<div className="offcanvas-header">
<h5 className="offcanvas-title" id="menuAdmDashLinksLabel" dir="auto"><a href="/admin/dashboard">LCP</a></h5>
<h5 className="offcanvas-title" id="menuAdmDashLinksLabel" dir="auto"><a href={`${lang}/admin/dashboard`}>LCP</a></h5>
<button type="button" className="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div className="offcanvas-body">
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/components/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Navbar() {
<>
<nav className="navbar fixed-top navbar-expand-lg bg-body-tertiary mnavbar" id="mnavbar">
<div className="container-fluid">
<a className="navbar-brand" href="/">LCP</a>
<a className="navbar-brand" href={`/${localStorage.getItem("lang")}`}>LCP</a>
<button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarLinks" aria-controls="navbarLinks" aria-expanded="false" aria-label="Toggle navigation" onClick={clickNav}>
<i className={`bi bi-${isCollapsed ? "x" : "three-dots"}`}></i>
</button>
Expand Down

0 comments on commit ce76ff6

Please sign in to comment.