Skip to content

Commit 40a3330

Browse files
Cocoakareila
Cocoa
authored andcommitted
Fix redirect issues with /manage/profile
1 parent 44f1b1f commit 40a3330

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cgi-bin/DW/Controller/Manage/Profile.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ use DW::External::ProfileServices;
3333
use DW::FormErrors;
3434
use Data::Dumper;
3535

36-
DW::Routing->register_string( "/manage/profile", \&profile_handler, app => 1 );
36+
DW::Routing->register_string( "/manage/profile", \&profile_handler, app => 1, no_redirects => 1 );
37+
DW::Routing->register_string( "/manage/profile/", \&profile_handler, app => 1, no_redirects => 1 );
3738

3839
sub profile_handler {
3940
my ( $ok, $rv ) = controller( anonymous => 0, form_auth => 1, authas => 1 );

views/manage/profile.tt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<a href='#display'>[% dw.ml('.section.display') %]</a>
2626
</div></div>
2727

28-
<form method='post' action="[% dw.create_url('/manage/profile/', keep_args => ["authas"]) %]">
28+
<form method='post' action="[% dw.create_url('/manage/profile', keep_args => ["authas"]) %]">
2929
[%- dw.form_auth %]
3030
<table summary='' width='100%' style='margin: 1em 0;'>
3131

0 commit comments

Comments
 (0)