locomotivecms / steam

The rendering stack used by both Wagon and Station (new name of the engine). It includes the rack stack and the liquid drops/filters/tags.
MIT License
38 stars 59 forks source link

Global Drop {{ referer }} renders nothing when used in conjunction with {% authorize %} #202

Open greyskin opened 3 years ago

greyskin commented 3 years ago

Steps to reproduce this issue:

  1. Set up a site with Authorization, e.g. https://github.com/locomotivecms/site-templates/tree/master/auth.
  2. Set up a page with {% authorize 'accounts', 'login' %}.
  3. Set up login.liquid (with handle: login) and include {{ referer }}.
  4. Deploy the site.
  5. Without being authenticated, navigate to the page created in step 2 ({% authorize %} will redirect you to the login page).
  6. Observe that {{ referer }} renders nothing.