Ignore:
Timestamp:
12/09/08 18:16:48 (3 years ago)
Author:
CrawfordCurrie
Message:

Item253: remove TWikiDrawPlugin hack; analyse, rationalise and document usage of redirectto; Item5926: added encodings that were proposed to make chinese work (they don't break anything AFAICT). Deprecate Foswiki::Func::getRegularExpression (the regex array is published)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/UI/Manage.pm

    r1206 r1221  
    263263| =currentwebonly= | if defined, searches current web only for links to this topic | 
    264264| =nonwikiword= | if defined, a non-wikiword is acceptable for the new topic name | 
     265| =redirectto= | If the rename process is successful, rename will redirect to this topic or URL. The parameter value can be a =TopicName=, a =Web.TopicName=, or a URL.%BR% __Note:__ Redirect to a URL only works if it is enabled in =configure= (Miscellaneous ={AllowRedirectUrl}=). | 
    265266 
    266267=cut 
     
    462463    } 
    463464 
    464     #follow redirectto= 
    465     $session->redirect( $new_url, undef, 1 ); 
     465    # follow redirectto 
     466    $session->redirect( $session->redirectto( $new_url ) ); 
    466467} 
    467468 
     
    15871588    }; 
    15881589    my $viewURL = $session->getScriptUrl( 0, 'view', $web, $topic ); 
    1589     $session->redirect( $viewURL, undef, 1 ); 
    1590     return; 
    1591  
     1590    $session->redirect( $session->redirectto($viewURL) ); 
    15921591} 
    15931592 
Note: See TracChangeset for help on using the changeset viewer.