change letter previews to be in the no_cookies blueprint

this blueprint should be applied to every endpoint that is loaded async
(as in via a src tag on an img, iframe, etc)
This commit is contained in:
Leo Hemsted
2019-11-29 11:40:49 +00:00
parent 72acc4ebdc
commit 3be9150dcf
9 changed files with 66 additions and 61 deletions

View File

@@ -200,7 +200,7 @@ def letter_template():
filename = 'no-branding'
template = {'subject': '', 'content': ''}
image_url = url_for('main.letter_branding_preview_image', filename=filename)
image_url = url_for('no_cookie.letter_branding_preview_image', filename=filename)
template_image = str(LetterImageTemplate(
template,