Browse Source

Update RefererRedirect.md

Mark Sch 5 years ago
parent
commit
c4e0829ecc
1 changed files with 3 additions and 2 deletions
  1. 3 2
      docs/Component/RefererRedirect.md

+ 3 - 2
docs/Component/RefererRedirect.md

@@ -43,8 +43,9 @@ After successful save it will then redirect to exactly the current URL including
 
 
 ## When not to use
-Make sure you are not using such approaches when linking to an action that removes an entity from the view of that entity.
-So do not use it for deleting actions while you are on the view action of this entity, for example.
+Make sure you are not using such approaches when linking to an action that removes an entity from the `view`/`edit` action of that entity.
+So do not use it for deleting actions while you are on the `view` action of this entity, for example.
+Or in that case make sure you pass the referer of the "target" action, e.g. `index` etc. This way the redirect will then not run into an error or redirect loop.
 
 ## Security
 It is advised to whitelist the actions for valid referer redirect.