Skip to content

Commit

Permalink
Item14102: Force view action
Browse files Browse the repository at this point in the history
ShorterUrlCookbook recommends copying "view" to "xview" which won't work
if the action is derived from the script name.  Hardcode action to view.
  • Loading branch information
gac410 committed Jul 9, 2016
1 parent f475285 commit 713c70b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/bin/view
Expand Up @@ -20,8 +20,7 @@ BEGIN {
my $setlib = File::Spec->catpath( $volume, $binDir, 'setlib.cfg' );
@INC = ( '.', grep { $_ ne '.' } @INC ) unless $binDir;
require $setlib;
$action =~ s/\..*$//; # Remove eventual file extension
$ENV{FOSWIKI_ACTION} = $action;
$ENV{FOSWIKI_ACTION} = 'view';
}

use Foswiki ();
Expand Down

0 comments on commit 713c70b

Please sign in to comment.