Skip to content

Commit

Permalink
Avoid mod_dir redirect.
Browse files Browse the repository at this point in the history
By putting a slash at the end of the directory name, we prevent `mod_dir` from redirecting, thus saving a request. There are probably other places where this would show up, but not many.
  • Loading branch information
theory committed Jan 27, 2010
1 parent 638e34d commit 5db3950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion comp/admin/profile/action/dhandler
Expand Up @@ -56,7 +56,7 @@ $m->comp('/widgets/profile/formButtons.mc',
type => $ckey,
no_del => $no_del,
section => $section,
return => "/admin/profile/dest?id=$dest_id",
return => "/admin/profile/dest/?id=$dest_id",
val => $label,
no_save => $no_edit,
widget => 'action');
Expand Down
2 changes: 1 addition & 1 deletion comp/admin/profile/server/dhandler
Expand Up @@ -19,7 +19,7 @@ $m->comp("/widgets/wrappers/table_bottom.mc");
</%perl>
<& '/widgets/profile/formButtons.mc', type => $type, section => $section,
no_del => $no_del, no_save => $no_edit, widget => $type,
return => "/admin/profile/dest?id=$dest_id" &>
return => "/admin/profile/dest/?id=$dest_id" &>

</form>
<& '/widgets/wrappers/footer.mc', param => \%ARGS &>
Expand Down

0 comments on commit 5db3950

Please sign in to comment.