Hyperlink - wrong encodeURI of source links

Stimulsoft Reports.JS discussion
Post Reply
csrt
Posts: 61
Joined: Thu Jan 17, 2019 12:38 pm

Hyperlink - wrong encodeURI of source links

Post by csrt »

Hello, I am using the latest Stimulsoft 2025.2.3 version.

I have a report, containing a field, that has set an Interaction: Common: Hyperlink (Hyperlink to External Document).
From my database, I get links, and some of them contain get parameters with quotes, like following:

Code: Select all

"link": "#/someRelativeLink/here?param1=\"someParam1\"&param2=\"someParam2\""
The problem is that the Report interprets this links wrong, containing the underscore symbol instead of quotes, and as a result I get the following link:

Code: Select all

#/someRelativeLink/here?param1=_someParam1_&param2=_someParam2_
This problem wasn't present in earlier versions.
I've attached a sample report to illustrate the problem.

Thank you!
Attachments
SimpleList (2).mrt
(109.21 KiB) Downloaded 118 times
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: Hyperlink - wrong encodeURI of source links

Post by Lech Kulikowski »

Hello,

You should use the following link:
#/someRelativeLink/here?param1=%22someParam1%22&param2=%22someParam2%22

Thank you.
Attachments
Screenshot 2025-05-08 090805.png
Screenshot 2025-05-08 090805.png (31.31 KiB) Viewed 1468 times
csrt
Posts: 61
Joined: Thu Jan 17, 2019 12:38 pm

Re: Hyperlink - wrong encodeURI of source links

Post by csrt »

Hello, thank you for the provided solution.

I tracked this behavior to the 2024.3.5 version. So in 2024.3.4 version this problem is absent, and since 2024.3.5 - the problem starts.
My question is: will this behavior be fixed? Or this is the new standard behavior?

Thank you.
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: Hyperlink - wrong encodeURI of source links

Post by Lech Kulikowski »

Hello,

It is the correct behaviour due to security reasons.

Thank you.
csrt
Posts: 61
Joined: Thu Jan 17, 2019 12:38 pm

Re: Hyperlink - wrong encodeURI of source links

Post by csrt »

Thank you for your response. I will use the provided solution.
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: Hyperlink - wrong encodeURI of source links

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply