fix redirect in location display api
This commit is contained in:
parent
e6b6db1c7c
commit
614c61efee
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ class LocationViewSet(RetrieveModelMixin, GenericViewSet):
|
||||||
raise NotFound
|
raise NotFound
|
||||||
|
|
||||||
if isinstance(location, LocationRedirect):
|
if isinstance(location, LocationRedirect):
|
||||||
return redirect('../' + location.target.slug)
|
return redirect('../' + location.target.slug + '/display/')
|
||||||
|
|
||||||
result = location.serialize(geometry=True)
|
result = location.serialize(geometry=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue