ソースを参照

Update RefererRedirect.md

Mark Sch 5 年 前
コミット
c4e0829ecc
1 ファイル変更3 行追加2 行削除
  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.