mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-21 04:42:22 -06:00
Closes #8031: Remove automatic redirection of legacy slug-based URLs
This commit is contained in:
@@ -125,14 +125,3 @@ class GetReturnURLMixin:
|
||||
|
||||
# If all else fails, return home. Ideally this should never happen.
|
||||
return reverse('home')
|
||||
|
||||
|
||||
#
|
||||
# Views
|
||||
#
|
||||
|
||||
class SlugRedirectView(View):
|
||||
|
||||
def get(self, request, model, slug):
|
||||
obj = get_object_or_404(model.objects.restrict(request.user, 'view'), slug=slug)
|
||||
return redirect(obj.get_absolute_url())
|
||||
|
||||
Reference in New Issue
Block a user