diff --git a/profiles/api/views/scope_api_views.py b/profiles/api/views/scope_api_views.py index 4208572e3..96a655557 100644 --- a/profiles/api/views/scope_api_views.py +++ b/profiles/api/views/scope_api_views.py @@ -84,4 +84,4 @@ class RedirectScopeDetails(RedirectView): def get_redirect_url(self, *args, **kwargs): pk = kwargs.pop("pk") scope = get_object_or_404(Scope, pk=pk) - return scope.get_url() + return scope.get_url().replace('/ui/', '/api/')