New answers tagged

2

new line detected should give you an idea of what to look for - your macro file may have some line breaks between code blocks, and it's writing them to the page before hitting your redirect tag. Try wrapping it all in {% spaceless %} tags, and see if that helps?


1

You can get the previous page (within the same site) with {{ craft.app.request.referrer }}.


Top 50 recent answers are included