Skip to content

Commit fa12ff2

Browse files
authored
add the ability to copy a link (#373)
1 parent 651adeb commit fa12ff2

File tree

9 files changed

+373
-179
lines changed

9 files changed

+373
-179
lines changed

backend/donations/views/redirections.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ def get_context_data(self, **kwargs):
7979
except Ngo.DoesNotExist:
8080
raise Http404
8181

82+
absolute_path = request.build_absolute_uri(reverse("twopercent", kwargs={"ngo_url": ngo_url}))
83+
8284
context.update(
8385
{
8486
"title": ngo.name,
8587
"ngo": ngo,
88+
"absolute_path": absolute_path,
8689
}
8790
)
8891

0 commit comments

Comments
 (0)