[Rt-commit] rtir branch, 5.0-trunk, updated. 5.0.0-14-g4f11ce20

? sunnavy sunnavy at bestpractical.com
Tue Oct 27 09:46:17 EDT 2020


The branch, 5.0-trunk has been updated
       via  4f11ce20d84dd343276349b35fe48b3372525874 (commit)
       via  9a796ba1e053c6ff4cbb8251366e01fd6bed918b (commit)
      from  3aafac3c68370aa61585801784d170795e75a898 (commit)

Summary of changes:
 html/Callbacks/RTIR/Elements/Tabs/Privileged | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 9a796ba1e053c6ff4cbb8251366e01fd6bed918b
Author: craig kaiser <craig at bestpractical.com>
Date:   Mon Oct 26 16:08:03 2020 -0400

    Disable IncludeWebPath flag on ExteneralFeeds link generation.
    
    If WebPath is set to something like /rt, not explicitly setting
    IncludeWebPath to false for RT::IR->HREFTo will result in a duplicate
    /rt/rt showing up in the link.

diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index 16fb1979..f370a0dc 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -180,7 +180,7 @@ $tools->child( reporting => title => loc('Reporting'), path => RT::IR->HREFTo('R
 my $scripted_actions = $tools->child( scripted_actions => title => loc('Scripted Action') );
 $scripted_actions->child( email => title => loc('By Email address'), path => RT::IR->HREFTo('Tools/ScriptedAction.html', IncludeWebPath => 0) );
 $scripted_actions->child( ip => title => loc('By IP address'), path => RT::IR->HREFTo('Tools/ScriptedAction.html?loop=IP', IncludeWebPath => 0) );
-my $external_feeds = $tools->child( 'external_feeds', title => loc('External Feeds'), path => RT::IR->HREFTo('Tools/ExternalFeeds.html') );
+my $external_feeds = $tools->child( 'external_feeds', title => loc('External Feeds'), path => RT::IR->HREFTo('Tools/ExternalFeeds.html', IncludeWebPath => 0) );
 
 my $request_path = $HTML::Mason::Commands::r->path_info;
 $request_path =~ s!/{2,}!/!g;

commit 4f11ce20d84dd343276349b35fe48b3372525874
Merge: 3aafac3c 9a796ba1
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Oct 27 21:35:20 2020 +0800

    Merge branch '5.0/fix-broken-webpath-externalfeeds-link' into 5.0-trunk


-----------------------------------------------------------------------


More information about the rt-commit mailing list