Failed to load resource, 404 while using BASE_PATH #5305

Closed
opened 2025-12-29 19:26:28 +01:00 by adam · 5 comments
Owner

Originally created by @silkofix on GitHub (Sep 3, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.1

Python version

3.9

Steps to Reproduce

  1. Go to IPAM -> VLANs
  2. Click "Add"

Expected Behavior

Get all of searching fields like: "Tags", "Role", "VLAN Group"

Observed Behavior

I used BASE_PATH = 'netbox/'
Get a red box and api error.
netbox.js:8 GET https://localhost/netbox/netbox/api/ipam/roles/?brief=true 404 (Not Found)
I think the problem is in the link being created, it is duplicated.

When i removed BASE_PATH and use netbox like https://localhost/.
Link be like: https://localhost/api/ipam/roles/?brief=true and no problems further

Originally created by @silkofix on GitHub (Sep 3, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.1 ### Python version 3.9 ### Steps to Reproduce 1. Go to IPAM -> VLANs 2. Click "Add" ### Expected Behavior Get all of searching fields like: "Tags", "Role", "VLAN Group" ### Observed Behavior I used BASE_PATH = 'netbox/' Get a red box and api error. netbox.js:8 GET https://localhost/netbox/netbox/api/ipam/roles/?brief=true 404 (Not Found) I think the problem is in the link being created, it is duplicated. When i removed BASE_PATH and use netbox like https://localhost/. Link be like: https://localhost/api/ipam/roles/?brief=true and no problems further
adam added the type: bugstatus: accepted labels 2025-12-29 19:26:28 +01:00
adam closed this issue 2025-12-29 19:26:28 +01:00
Author
Owner

@ziggekatten commented on GitHub (Sep 3, 2021):

We use BASE_PATH and do NOT have this problem i 3.0.1.

@ziggekatten commented on GitHub (Sep 3, 2021): We use BASE_PATH and do NOT have this problem i 3.0.1.
Author
Owner

@silkofix commented on GitHub (Sep 3, 2021):

We use BASE_PATH and do NOT have this problem i 3.0.1.

ye i was reading #7091 :) But... Same problem was on 3.0.0
Maybe its problem with my proxy, but i don't think so... This problem was not on v2.11.12

@silkofix commented on GitHub (Sep 3, 2021): > We use BASE_PATH and do NOT have this problem i 3.0.1. ye i was reading #7091 :) But... Same problem was on 3.0.0 Maybe its problem with my proxy, but i don't think so... This problem was not on v2.11.12
Author
Owner

@DanSheps commented on GitHub (Sep 3, 2021):

Could anyone else confirm if this is an issue or not?

@DanSheps commented on GitHub (Sep 3, 2021): Could anyone else confirm if this is an issue or not?
Author
Owner

@jeremystretch commented on GitHub (Sep 3, 2021):

Yes, this is a problem on the current develop branch. It looks like the base path is being added twice.

@jeremystretch commented on GitHub (Sep 3, 2021): Yes, this is a problem on the current `develop` branch. It looks like the base path is being added twice.
Author
Owner

@jeremystretch commented on GitHub (Sep 3, 2021):

Looks like this is a regression introduced under #7091. I think I have it sorted.

@jeremystretch commented on GitHub (Sep 3, 2021): Looks like this is a regression introduced under #7091. I think I have it sorted.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5305