prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [BUG]: FrontEnd routing issues
  ### Description
  
  The header in the application routes the application incorrectly and needs to be fixed. If it routes the anchor tag incorrectly, we'll be having a nested routes tree  of /page1/page2/...
  
  
  
  ### What should have happened?
  Its end output must be like this
  ```html
  <a class="dark-white-text menu-text" href="/howitworks">How CiviWiki Works</a>
  ```
  instead of 
  ```html
  <a class="dark-white-text menu-text" href="howitworks">How CiviWiki Works</a>
  ```
  
  ### What browser(s) are you seeing the problem on?
  All
  
  
  </issue>
  <code>
  [start of project/frontend_views/urls.py]
  1 from django.urls import path
  2 from frontend_views import views
  3 
  4 urlpatterns = [
  5     path("about/", views.about_view, name="about"),
  6     path("support_us/", views.support_us_view, name="support us"),
  7     path("howitworks/", views.how_it_works_view, name="how it works"),
  8     path("profile/<str:username>/", views.user_profile, name="profile"),
  9     path("thread/<int:thread_id>/", views.issue_thread, name="issue thread"),
  10     path("profile/", views.user_profile, name="default_profile"),
  11     path("", views.base_view, name="base"),
  12     path("thread/<int:thread_id>/csv/", views.civi2csv, name="civi2csv"),
  13 ]
  14
  [end of project/frontend_views/urls.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/project/frontend_views/urls.py b/project/frontend_views/urls.py
  --- a/project/frontend_views/urls.py
  +++ b/project/frontend_views/urls.py
  @@ -3,10 +3,10 @@
   
   urlpatterns = [
       path("about/", views.about_view, name="about"),
  -    path("support_us/", views.support_us_view, name="support us"),
  -    path("howitworks/", views.how_it_works_view, name="how it works"),
  +    path("support_us/", views.support_us_view, name="support_us"),
  +    path("howitworks/", views.how_it_works_view, name="how_it_works"),
       path("profile/<str:username>/", views.user_profile, name="profile"),
  -    path("thread/<int:thread_id>/", views.issue_thread, name="issue thread"),
  +    path("thread/<int:thread_id>/", views.issue_thread, name="issue_thread"),
       path("profile/", views.user_profile, name="default_profile"),
       path("", views.base_view, name="base"),
       path("thread/<int:thread_id>/csv/", views.civi2csv, name="civi2csv"),
  
verification_info: {"golden_diff": "diff --git a/project/frontend_views/urls.py b/project/frontend_views/urls.py\n--- a/project/frontend_views/urls.py\n+++ b/project/frontend_views/urls.py\n@@ -3,10 +3,10 @@\n \n urlpatterns = [\n     path(\"about/\", views.about_view, name=\"about\"),\n-    path(\"support_us/\", views.support_us_view, name=\"support us\"),\n-    path(\"howitworks/\", views.how_it_works_view, name=\"how it works\"),\n+    path(\"support_us/\", views.support_us_view, name=\"support_us\"),\n+    path(\"howitworks/\", views.how_it_works_view, name=\"how_it_works\"),\n     path(\"profile/<str:username>/\", views.user_profile, name=\"profile\"),\n-    path(\"thread/<int:thread_id>/\", views.issue_thread, name=\"issue thread\"),\n+    path(\"thread/<int:thread_id>/\", views.issue_thread, name=\"issue_thread\"),\n     path(\"profile/\", views.user_profile, name=\"default_profile\"),\n     path(\"\", views.base_view, name=\"base\"),\n     path(\"thread/<int:thread_id>/csv/\", views.civi2csv, name=\"civi2csv\"),\n", "issue": "[BUG]: FrontEnd routing issues\n### Description\r\n\r\nThe header in the application routes the application incorrectly and needs to be fixed. If it routes the anchor tag incorrectly, we'll be having a nested routes tree  of /page1/page2/...\r\n\r\n\r\n\r\n### What should have happened?\r\nIts end output must be like this\r\n```html\r\n<a class=\"dark-white-text menu-text\" href=\"/howitworks\">How CiviWiki Works</a>\r\n```\r\ninstead of \r\n```html\r\n<a class=\"dark-white-text menu-text\" href=\"howitworks\">How CiviWiki Works</a>\r\n```\r\n\r\n### What browser(s) are you seeing the problem on?\r\nAll\r\n\n", "before_files": [{"content": "from django.urls import path\nfrom frontend_views import views\n\nurlpatterns = [\n    path(\"about/\", views.about_view, name=\"about\"),\n    path(\"support_us/\", views.support_us_view, name=\"support us\"),\n    path(\"howitworks/\", views.how_it_works_view, name=\"how it works\"),\n    path(\"profile/<str:username>/\", views.user_profile, name=\"profile\"),\n    path(\"thread/<int:thread_id>/\", views.issue_thread, name=\"issue thread\"),\n    path(\"profile/\", views.user_profile, name=\"default_profile\"),\n    path(\"\", views.base_view, name=\"base\"),\n    path(\"thread/<int:thread_id>/csv/\", views.civi2csv, name=\"civi2csv\"),\n]\n", "path": "project/frontend_views/urls.py"}]}