Skip to content

Commit

Permalink
refactor: Update homepage URL in navbar brand link
Browse files Browse the repository at this point in the history
  • Loading branch information
erfanghorbanee committed Aug 29, 2024
1 parent 589cecc commit a4f2bb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Django-Shop/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

urlpatterns = [
path("admin/", admin.site.urls),
path('', include('home.urls')),
path('', include('home.urls'), name='home'),

# allauth
path('accounts/', include('allauth.urls')),
Expand Down
2 changes: 1 addition & 1 deletion Django-Shop/templates/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<a class="navbar-brand" href="/"><strong>Django Shop</strong></a>
<a class="navbar-brand" href="{% url 'home' %}"><strong>Django Shop</strong></a>

<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down

0 comments on commit a4f2bb1

Please sign in to comment.