[Rt-commit] rtir branch, 5.0/fix-broken-webpath-externalfeeds-link, created. 5.0.0-15-g017be1df
Craig Kaiser
craig at bestpractical.com
Mon Oct 26 16:19:04 EDT 2020
The branch, 5.0/fix-broken-webpath-externalfeeds-link has been created
at 017be1df9b4fc909ca0271cfcbf6f9419d93e941 (commit)
- Log -----------------------------------------------------------------
commit 017be1df9b4fc909ca0271cfcbf6f9419d93e941
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;
-----------------------------------------------------------------------
More information about the rt-commit
mailing list