-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Make it possible to strip certain param.
Added extra configuration to strip certain user defined parameters in the redirect. It also has the configuration possiblity to bypass redirect if any of the following is present: - no_cache is set - Backend user is logged in - type is set
- Loading branch information
Daniel Schledermann
committed
Sep 23, 2014
1 parent
f586b1c
commit de1fd55
Showing
2 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# cat=basic; type=string; label=Strip params. Strip these parameters if they are present in the query-string (Separate with spaces) | ||
strip_params = no_cache | ||
|
||
# cat=basic; type=boolean; label=Logged in skip. Skip redirect if logged in. Check this if you do not want to redirect users that are logged in into the backend. | ||
skip_if_logged_in = 1 | ||
|
||
# cat=basic; type=boolean; label=No cache skip. Check this if you do not want to get redirects when no_cache is on. This is typically a development setting. This will take precedence over strip_params. | ||
skip_if_no_cache = 0 | ||
|
||
# cat=basic; type=boolean; label=typeNum skip. Check this if you do not want to get redirects for non-0 typeNum. This is often used if you are doing some sort of AJAX specific pages. | ||
skip_if_typeNum = 1 | ||
|