mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
The request variable is not available when a custom template is used to render a notification. Fix this by passing the template rendering context additional request variable. Closes: #1887. Tests: - Reduce the version number in data for 'upgrades-new-release' notification in the plinth_storednotification table in the DB. Start FreedomBox. New release message will appear. Go to page other than home page. The dismiss button has next= parameter filled properly with current URL. Dismiss the notification and notice that page URL stays the same. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2 lines
40 B
HTML
2 lines
40 B
HTML
Test notification body {{request.path}}
|