Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
290dadc5
Commit
290dadc5
authored
Apr 19, 2020
by
IKEDA Soji
Browse files
WWSympa: arc: After login, the last content, not always the last page, is shown
parent
db8702f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgi/wwsympa.fcgi.in
View file @
290dadc5
...
...
@@ -1451,15 +1451,24 @@ while ($query = CGI::Fast->new) {
# or other temporary actions.
# - We should not memorize URLs that are transitory actions.
# - POST is not handled.
# - Embedded images in archive should be ignored.
# - A lot of other methods where used in the past (before session was
# introduced in Sympa). We must clean all.
# N.B.: Location to where redirect should respect local authority.
if (not $temporary_actions{$action}
and $ENV{'REQUEST_METHOD'} eq 'GET') {
my $redirect_url =
Sympa::WWW::Tools::get_my_url($robot, authority => 'local');
$redirect_url =~ s/[?].*\z//;
$session->{'redirect_url'} = $redirect_url;
my $arc_file = $in{'arc_file'} // '';
unless (
$action eq 'arc'
and not($arc_file eq ''
or $arc_file =~ m{/\z}
or $arc_file =~ m{\A(?:mail|msg|thrd)\d+[.]html\z})
) {
my $redirect_url =
Sympa::WWW::Tools::get_my_url($robot, authority => 'local');
$redirect_url =~ s/[?].*\z//;
$session->{'redirect_url'} = $redirect_url;
}
}
$action ||= Conf::get_robot_conf($robot, 'default_home');
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment