events.links.link_user_notifications_list should use reverse
At https://gitlab.com/mayan-edms/mayan-edms/blob/master/mayan/apps/events/links.py#L77 there is a hard-coded URL to the notifications API:
'apw-url': '/api/notifications/?read=False',
We are running Mayan at a sub-location, e.g. http://localhost:8000/mayan/ instead of http://localhost:8000/. We use a custom urls.py
to include the Mayan urls.py
with a prefix. For the most part this works well.
However, this hard-coded URL isn't rendered correctly in the way that the other URLs generated by {% static %}
or django.urls.reverse
are.
I think that this should actually be:
reverse("rest_api:notification-list") + '?read=False'
I'm happy to create an MR against @master.