We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
wrong link from circuit types to circuit
<!--
    NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED.

    This form is only for reporting reproducible bugs. If you need assistance
    with Nautobot installation, or if you have a general question, please start a
    discussion instead: https://github.com/nautobot/nautobot/discussions

    Please describe the environment in which you are running Nautobot. Be sure
    that you are running an unmodified instance of the latest stable release
    before submitting a bug report, and that any plugins have been disabled.
-->
### Environment
* Nautobot version (Docker tag too if applicable):  eee34d7bc54d (v1.4.5)
* Python version: 3.10
* Database platform, version: postgresql 14
* Middleware(s):

<!--
    Describe in detail the exact steps that someone else can take to reproduce
    this bug using the current stable release of Nautobot. Begin with the
    creation of any necessary database objects and call out every operation
    being performed explicitly. If reporting a bug in the REST API, be sure to
    reconstruct the raw HTTP request(s) being made: Don't rely on a client
    library such as pynautobot.
-->
### Steps to Reproduce
1. Create circuit type
2. Create circuit of above circuit type
3. Go to Circuit Types
4. Click one circuit type
5. Click number of circuits belonging to circuit type

<!-- What did you expect to happen? -->
### Expected Behavior
redirect to `circuits/circuits/?type=XXX`

<!-- What happened instead? -->
### Observed Behavior
redirects to `circuits/circuits/?circuit_type=XXX`
which shows an "Invalid filters were specified" error

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `nautobot/circuits/tables.py`
Content:
```
1 import django_tables2 as tables
2 from django_tables2.utils import Accessor
3 
4 from nautobot.extras.tables import StatusTableMixin
5 from nautobot.tenancy.tables import TenantColumn
6 from nautobot.utilities.tables import (
7     BaseTable,
8     ButtonsColumn,
9     TagColumn,
10     ToggleColumn,
11 )
12 from .models import Circuit, CircuitType, Provider, ProviderNetwork
13 
14 CIRCUIT_TERMINATION_PARENT = """
15 {% if value.provider_network %}
16 <a href="{{ value.provider_network.get_absolute_url }}">{{ value.provider_network }}</a>
17 {% elif value.site %}
18 <a href="{{ value.site.get_absolute_url }}">{{ value.site }}</a>
19 {% endif %}
20 """
21 
22 #
23 # Provider Network
24 #
25 
26 
27 class ProviderNetworkTable(BaseTable):
28     pk = ToggleColumn()
29     name = tables.Column(linkify=True)
30     provider = tables.Column(linkify=True)
31     tags = TagColumn(url_name="circuits:providernetwork_list")
32 
33     class Meta(BaseTable.Meta):
34         model = ProviderNetwork
35         fields = ("pk", "name", "provider", "description", "tags")
36         default_columns = ("pk", "name", "provider", "description")
37 
38 
39 #
40 # Providers
41 #
42 
43 
44 class ProviderTable(BaseTable):
45     pk = ToggleColumn()
46     name = tables.LinkColumn()
47     circuit_count = tables.Column(accessor=Accessor("count_circuits"), verbose_name="Circuits")
48     tags = TagColumn(url_name="circuits:provider_list")
49 
50     class Meta(BaseTable.Meta):
51         model = Provider
52         fields = (
53             "pk",
54             "name",
55             "asn",
56             "account",
57             "portal_url",
58             "noc_contact",
59             "admin_contact",
60             "circuit_count",
61             "tags",
62         )
63         default_columns = ("pk", "name", "asn", "account", "circuit_count")
64 
65 
66 #
67 # Circuit types
68 #
69 
70 
71 class CircuitTypeTable(BaseTable):
72     pk = ToggleColumn()
73     name = tables.LinkColumn()
74     circuit_count = tables.Column(verbose_name="Circuits")
75     actions = ButtonsColumn(CircuitType, pk_field="slug")
76 
77     class Meta(BaseTable.Meta):
78         model = CircuitType
79         fields = ("pk", "name", "circuit_count", "description", "slug", "actions")
80         default_columns = (
81             "pk",
82             "name",
83             "circuit_count",
84             "description",
85             "slug",
86             "actions",
87         )
88 
89 
90 #
91 # Circuits
92 #
93 
94 
95 class CircuitTable(StatusTableMixin, BaseTable):
96     pk = ToggleColumn()
97     cid = tables.LinkColumn(verbose_name="ID")
98     provider = tables.LinkColumn(viewname="circuits:provider", args=[Accessor("provider__slug")])
99     tenant = TenantColumn()
100     tags = TagColumn(url_name="circuits:circuit_list")
101 
102     termination_a = tables.TemplateColumn(
103         template_code=CIRCUIT_TERMINATION_PARENT,
104         accessor=Accessor("termination_a"),
105         orderable=False,
106         verbose_name="Side A",
107     )
108     termination_z = tables.TemplateColumn(
109         template_code=CIRCUIT_TERMINATION_PARENT,
110         accessor=Accessor("termination_z"),
111         orderable=False,
112         verbose_name="Side Z",
113     )
114 
115     class Meta(BaseTable.Meta):
116         model = Circuit
117         fields = (
118             "pk",
119             "cid",
120             "provider",
121             "type",
122             "status",
123             "tenant",
124             "termination_a",
125             "termination_z",
126             "install_date",
127             "commit_rate",
128             "description",
129             "tags",
130         )
131         default_columns = (
132             "pk",
133             "cid",
134             "provider",
135             "type",
136             "status",
137             "tenant",
138             "termination_a",
139             "termination_z",
140             "description",
141         )
142
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/nautobot/circuits/tables.py b/nautobot/circuits/tables.py
--- a/nautobot/circuits/tables.py
+++ b/nautobot/circuits/tables.py
@@ -12,10 +12,13 @@
 from .models import Circuit, CircuitType, Provider, ProviderNetwork
 
 CIRCUIT_TERMINATION_PARENT = """
+{% load helpers %}
 {% if value.provider_network %}
-<a href="{{ value.provider_network.get_absolute_url }}">{{ value.provider_network }}</a>
+{{ value.provider_network|hyperlinked_object }}
 {% elif value.site %}
-<a href="{{ value.site.get_absolute_url }}">{{ value.site }}</a>
+{{ value.site|hyperlinked_object }}
+{% else %}
+{{ None|placeholder }}
 {% endif %}
 """

{"golden_diff": "diff --git a/nautobot/circuits/tables.py b/nautobot/circuits/tables.py\n--- a/nautobot/circuits/tables.py\n+++ b/nautobot/circuits/tables.py\n@@ -12,10 +12,13 @@\n from .models import Circuit, CircuitType, Provider, ProviderNetwork\n \n CIRCUIT_TERMINATION_PARENT = \"\"\"\n+{% load helpers %}\n {% if value.provider_network %}\n-<a href=\"{{ value.provider_network.get_absolute_url }}\">{{ value.provider_network }}</a>\n+{{ value.provider_network|hyperlinked_object }}\n {% elif value.site %}\n-<a href=\"{{ value.site.get_absolute_url }}\">{{ value.site }}</a>\n+{{ value.site|hyperlinked_object }}\n+{% else %}\n+{{ None|placeholder }}\n {% endif %}\n \"\"\"\n", "issue": "wrong link from circuit types to circuit\n<!--\r\n    NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED.\r\n\r\n    This form is only for reporting reproducible bugs. If you need assistance\r\n    with Nautobot installation, or if you have a general question, please start a\r\n    discussion instead: https://github.com/nautobot/nautobot/discussions\r\n\r\n    Please describe the environment in which you are running Nautobot. Be sure\r\n    that you are running an unmodified instance of the latest stable release\r\n    before submitting a bug report, and that any plugins have been disabled.\r\n-->\r\n### Environment\r\n* Nautobot version (Docker tag too if applicable):  eee34d7bc54d (v1.4.5)\r\n* Python version: 3.10\r\n* Database platform, version: postgresql 14\r\n* Middleware(s):\r\n\r\n<!--\r\n    Describe in detail the exact steps that someone else can take to reproduce\r\n    this bug using the current stable release of Nautobot. Begin with the\r\n    creation of any necessary database objects and call out every operation\r\n    being performed explicitly. If reporting a bug in the REST API, be sure to\r\n    reconstruct the raw HTTP request(s) being made: Don't rely on a client\r\n    library such as pynautobot.\r\n-->\r\n### Steps to Reproduce\r\n1. Create circuit type\r\n2. Create circuit of above circuit type\r\n3. Go to Circuit Types\r\n4. Click one circuit type\r\n5. Click number of circuits belonging to circuit type\r\n\r\n<!-- What did you expect to happen? -->\r\n### Expected Behavior\r\nredirect to `circuits/circuits/?type=XXX`\r\n\r\n<!-- What happened instead? -->\r\n### Observed Behavior\r\nredirects to `circuits/circuits/?circuit_type=XXX`\r\nwhich shows an \"Invalid filters were specified\" error\n", "before_files": [{"content": "import django_tables2 as tables\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.extras.tables import StatusTableMixin\nfrom nautobot.tenancy.tables import TenantColumn\nfrom nautobot.utilities.tables import (\n    BaseTable,\n    ButtonsColumn,\n    TagColumn,\n    ToggleColumn,\n)\nfrom .models import Circuit, CircuitType, Provider, ProviderNetwork\n\nCIRCUIT_TERMINATION_PARENT = \"\"\"\n{% if value.provider_network %}\n<a href=\"{{ value.provider_network.get_absolute_url }}\">{{ value.provider_network }}</a>\n{% elif value.site %}\n<a href=\"{{ value.site.get_absolute_url }}\">{{ value.site }}</a>\n{% endif %}\n\"\"\"\n\n#\n# Provider Network\n#\n\n\nclass ProviderNetworkTable(BaseTable):\n    pk = ToggleColumn()\n    name = tables.Column(linkify=True)\n    provider = tables.Column(linkify=True)\n    tags = TagColumn(url_name=\"circuits:providernetwork_list\")\n\n    class Meta(BaseTable.Meta):\n        model = ProviderNetwork\n        fields = (\"pk\", \"name\", \"provider\", \"description\", \"tags\")\n        default_columns = (\"pk\", \"name\", \"provider\", \"description\")\n\n\n#\n# Providers\n#\n\n\nclass ProviderTable(BaseTable):\n    pk = ToggleColumn()\n    name = tables.LinkColumn()\n    circuit_count = tables.Column(accessor=Accessor(\"count_circuits\"), verbose_name=\"Circuits\")\n    tags = TagColumn(url_name=\"circuits:provider_list\")\n\n    class Meta(BaseTable.Meta):\n        model = Provider\n        fields = (\n            \"pk\",\n            \"name\",\n            \"asn\",\n            \"account\",\n            \"portal_url\",\n            \"noc_contact\",\n            \"admin_contact\",\n            \"circuit_count\",\n            \"tags\",\n        )\n        default_columns = (\"pk\", \"name\", \"asn\", \"account\", \"circuit_count\")\n\n\n#\n# Circuit types\n#\n\n\nclass CircuitTypeTable(BaseTable):\n    pk = ToggleColumn()\n    name = tables.LinkColumn()\n    circuit_count = tables.Column(verbose_name=\"Circuits\")\n    actions = ButtonsColumn(CircuitType, pk_field=\"slug\")\n\n    class Meta(BaseTable.Meta):\n        model = CircuitType\n        fields = (\"pk\", \"name\", \"circuit_count\", \"description\", \"slug\", \"actions\")\n        default_columns = (\n            \"pk\",\n            \"name\",\n            \"circuit_count\",\n            \"description\",\n            \"slug\",\n            \"actions\",\n        )\n\n\n#\n# Circuits\n#\n\n\nclass CircuitTable(StatusTableMixin, BaseTable):\n    pk = ToggleColumn()\n    cid = tables.LinkColumn(verbose_name=\"ID\")\n    provider = tables.LinkColumn(viewname=\"circuits:provider\", args=[Accessor(\"provider__slug\")])\n    tenant = TenantColumn()\n    tags = TagColumn(url_name=\"circuits:circuit_list\")\n\n    termination_a = tables.TemplateColumn(\n        template_code=CIRCUIT_TERMINATION_PARENT,\n        accessor=Accessor(\"termination_a\"),\n        orderable=False,\n        verbose_name=\"Side A\",\n    )\n    termination_z = tables.TemplateColumn(\n        template_code=CIRCUIT_TERMINATION_PARENT,\n        accessor=Accessor(\"termination_z\"),\n        orderable=False,\n        verbose_name=\"Side Z\",\n    )\n\n    class Meta(BaseTable.Meta):\n        model = Circuit\n        fields = (\n            \"pk\",\n            \"cid\",\n            \"provider\",\n            \"type\",\n            \"status\",\n            \"tenant\",\n            \"termination_a\",\n            \"termination_z\",\n            \"install_date\",\n            \"commit_rate\",\n            \"description\",\n            \"tags\",\n        )\n        default_columns = (\n            \"pk\",\n            \"cid\",\n            \"provider\",\n            \"type\",\n            \"status\",\n            \"tenant\",\n            \"termination_a\",\n            \"termination_z\",\n            \"description\",\n        )\n", "path": "nautobot/circuits/tables.py"}], "after_files": [{"content": "import django_tables2 as tables\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.extras.tables import StatusTableMixin\nfrom nautobot.tenancy.tables import TenantColumn\nfrom nautobot.utilities.tables import (\n    BaseTable,\n    ButtonsColumn,\n    TagColumn,\n    ToggleColumn,\n)\nfrom .models import Circuit, CircuitType, Provider, ProviderNetwork\n\nCIRCUIT_TERMINATION_PARENT = \"\"\"\n{% load helpers %}\n{% if value.provider_network %}\n{{ value.provider_network|hyperlinked_object }}\n{% elif value.site %}\n{{ value.site|hyperlinked_object }}\n{% else %}\n{{ None|placeholder }}\n{% endif %}\n\"\"\"\n\n#\n# Provider Network\n#\n\n\nclass ProviderNetworkTable(BaseTable):\n    pk = ToggleColumn()\n    name = tables.Column(linkify=True)\n    provider = tables.Column(linkify=True)\n    tags = TagColumn(url_name=\"circuits:providernetwork_list\")\n\n    class Meta(BaseTable.Meta):\n        model = ProviderNetwork\n        fields = (\"pk\", \"name\", \"provider\", \"description\", \"tags\")\n        default_columns = (\"pk\", \"name\", \"provider\", \"description\")\n\n\n#\n# Providers\n#\n\n\nclass ProviderTable(BaseTable):\n    pk = ToggleColumn()\n    name = tables.LinkColumn()\n    circuit_count = tables.Column(accessor=Accessor(\"count_circuits\"), verbose_name=\"Circuits\")\n    tags = TagColumn(url_name=\"circuits:provider_list\")\n\n    class Meta(BaseTable.Meta):\n        model = Provider\n        fields = (\n            \"pk\",\n            \"name\",\n            \"asn\",\n            \"account\",\n            \"portal_url\",\n            \"noc_contact\",\n            \"admin_contact\",\n            \"circuit_count\",\n            \"tags\",\n        )\n        default_columns = (\"pk\", \"name\", \"asn\", \"account\", \"circuit_count\")\n\n\n#\n# Circuit types\n#\n\n\nclass CircuitTypeTable(BaseTable):\n    pk = ToggleColumn()\n    name = tables.LinkColumn()\n    circuit_count = tables.Column(verbose_name=\"Circuits\")\n    actions = ButtonsColumn(CircuitType, pk_field=\"slug\")\n\n    class Meta(BaseTable.Meta):\n        model = CircuitType\n        fields = (\"pk\", \"name\", \"circuit_count\", \"description\", \"slug\", \"actions\")\n        default_columns = (\n            \"pk\",\n            \"name\",\n            \"circuit_count\",\n            \"description\",\n            \"slug\",\n            \"actions\",\n        )\n\n\n#\n# Circuits\n#\n\n\nclass CircuitTable(StatusTableMixin, BaseTable):\n    pk = ToggleColumn()\n    cid = tables.LinkColumn(verbose_name=\"ID\")\n    provider = tables.LinkColumn(viewname=\"circuits:provider\", args=[Accessor(\"provider__slug\")])\n    tenant = TenantColumn()\n    tags = TagColumn(url_name=\"circuits:circuit_list\")\n\n    termination_a = tables.TemplateColumn(\n        template_code=CIRCUIT_TERMINATION_PARENT,\n        accessor=Accessor(\"termination_a\"),\n        orderable=False,\n        verbose_name=\"Side A\",\n    )\n    termination_z = tables.TemplateColumn(\n        template_code=CIRCUIT_TERMINATION_PARENT,\n        accessor=Accessor(\"termination_z\"),\n        orderable=False,\n        verbose_name=\"Side Z\",\n    )\n\n    class Meta(BaseTable.Meta):\n        model = Circuit\n        fields = (\n            \"pk\",\n            \"cid\",\n            \"provider\",\n            \"type\",\n            \"status\",\n            \"tenant\",\n            \"termination_a\",\n            \"termination_z\",\n            \"install_date\",\n            \"commit_rate\",\n            \"description\",\n            \"tags\",\n        )\n        default_columns = (\n            \"pk\",\n            \"cid\",\n            \"provider\",\n            \"type\",\n            \"status\",\n            \"tenant\",\n            \"termination_a\",\n            \"termination_z\",\n            \"description\",\n        )\n", "path": "nautobot/circuits/tables.py"}]}