diff --git a/adhocracy4/follows/templatetags/react_follows.py b/adhocracy4/follows/templatetags/react_follows.py index 06d20cbf4..e0d1de3c2 100644 --- a/adhocracy4/follows/templatetags/react_follows.py +++ b/adhocracy4/follows/templatetags/react_follows.py @@ -13,7 +13,7 @@ def react_follows(context, project): authenticated_as = None if user.is_authenticated: authenticated_as = user.username - attributes = {"project": project.name, "authenticatedAs": authenticated_as} + attributes = {"project": project.slug, "authenticatedAs": authenticated_as} return format_html( '', attributes=json.dumps(attributes), diff --git a/changelog/_0007.md b/changelog/_0007.md new file mode 100644 index 000000000..3f78bbd84 --- /dev/null +++ b/changelog/_0007.md @@ -0,0 +1,3 @@ +### Fixed + +- follow templatetag is setting the project slug instead of the name