[In URLs] Use ampersands instead of semicolons?

Moderator: crythias

Post Reply
shostakovich
Znuny advanced
Posts: 146
Joined: 11 Apr 2011, 08:11
Znuny Version: 3.2.5

[In URLs] Use ampersands instead of semicolons?

Post by shostakovich »

Hi,

typically OTRS urls look like this:

Code: Select all

index.pl?Action=AgentTicketZoom;TicketID=46307
We often have problems with such URLs and would like to have OTRS show "&" in URLs in the browsers adress line instead of " ;" - is this mod-perl which has to be touched?

TIA
Michael
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [In URLs] Use ampersands instead of semicolons?

Post by crythias »

It may be possible to use a mod-rewrite, but you may want to take a look at:
Kernel/Modules/

Code: Select all

 grep Action * | grep TicketID
AgentTicketActionCommon.pm:            URL => "Action=AgentTicketZoom;TicketID=$Self->{TicketID};ArticleID=$ArticleID",
AgentTicketCompose.pm:            URL => "Action=AgentTicketZoom;TicketID=$Self->{TicketID};ArticleID=$ArticleID",
AgentTicketCustomer.pm:                    || "Action=AgentTicketZoom;TicketID=$Self->{TicketID}",
AgentTicketEmail.pm:                    Link => '$Env{"Baselink"}Action=AgentTicketZoom;TicketID=' . $Ticket{TicketID},
AgentTicketEmail.pm:            OP => "Action=$NextScreen;Subaction=Created;TicketID=$TicketID",
AgentTicketForward.pm:        URL => "Action=AgentTicketZoom;TicketID=$Self->{TicketID};ArticleID=$ArticleID",
AgentTicketMerge.pm:                URL => "Action=AgentTicketZoom;TicketID=$MainTicketID",
AgentTicketPhone.pm:                Link => '$Env{"Baselink"}Action=AgentTicketZoom;TicketID=' . $Ticket{TicketID},
AgentTicketPhone.pm:            && $Self->{RequestedURL} !~ /Action=AgentTicketPhone.*LinkTicketID=/
AgentTicketPhone.pm:            OP => "Action=$NextScreen;Subaction=Created;TicketID=$TicketID",
AgentTicketProcess.pm:            URL => "Action=AgentTicketZoom;TicketID=$UpdateTicketID",
AgentTicketProcess.pm:        OP => "Action=AgentTicketZoom;TicketID=$TicketID",
AgentTicketSearch.pm:                    OP => "Action=AgentTicketZoom;TicketID=$TicketID",
AgentTicketSearch.pm:                    OP => "Action=AgentTicketZoom;TicketID=$ViewableTicketIDs[0]",
AgentTicketZoom.pm:                            'Action=AgentTicketForward;TicketID=$Data{"TicketID"};ArticleID=$Data{"ArticleID"}'
AgentTicketZoom.pm:                            'Action=AgentTicketBounce;TicketID=$Data{"TicketID"};ArticleID=$Data{"ArticleID"}'
AgentTicketZoom.pm:                    'Action=AgentTicketPhone;TicketID=$Data{"TicketID"};ArticleID=$Data{"ArticleID"};LinkTicketID=$Data{"TicketID"}'
AgentTicketZoom.pm:                        'Action=AgentTicketPrint;TicketID=$Data{"TicketID"};ArticleID=$Data{"ArticleID"}'
AgentTicketZoom.pm:                = 'Action=AgentTicketPlain;TicketID=$Data{"TicketID"};ArticleID=$Data{"ArticleID"}';
AgentZoom.pm:            . 'Action=AgentTicketZoom;TicketID='
CustomerTicketMessage.pm:            OP => "Action=$NextScreen;TicketID=$TicketID",
CustomerTicketProcess.pm:        URL => "Action=CustomerTicketZoom;TicketID=$TicketID",
CustomerTicketZoom.pm:            OP => "Action=$NextScreen;TicketID=$Self->{TicketID}",
I have a problem with the semicolons, too. Lync converts them to %3B.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
shostakovich
Znuny advanced
Posts: 146
Joined: 11 Apr 2011, 08:11
Znuny Version: 3.2.5

Re: [In URLs] Use ampersands instead of semicolons?

Post by shostakovich »

crythias wrote:I have a problem with the semicolons, too. Lync converts them to %3B.
Exactly, it's Lync here causing problems. But not only. Also seen the problem when adding OTRS URLs to MS sharepoint via its web interface. But well, this is Code change, so we cannot make changes here. I hoped for an easy configuration toggle.
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

Re: [In URLs] Use ampersands instead of semicolons?

Post by miramar »

Hi All,

I think we should put a bug report to bugs.orts.org.

Regards.
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
Post Reply