"/" replaced by "2%f"

Questions"/" replaced by "2%f"
Hendrickx Willy asked 2 years ago

I have a column in my database that contains different URL.
When I make this visible in a grid, everything seems to be right,
but when I click on the url, all “/” are replaced in my url with “%2f”
and then I get the message page not found.

Kind regards
Willy

3 Answers
Abu Ghufran Staff answered 2 years ago

Hi,

Please share following to regenerate case:

  • Related grid code
  • Text stored in database field
  • Screenshot of what is shown in datagrid
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Hendrickx Willy answered 2 years ago

Grid Code
$col = array();
$col[“title”] = “Webinar”;
$col[“name”] = “Webinar”;
$col[“width”] = “70”;
$col[“editable”] = false;
$col[“link”] = “https://thematravel.webinargeek.com/{Webinar}”;
$col[“linkoptions”] = “target=’_blank'”; // opens in new tab
$cols[] = $col;

Text stored in the database : watch/replay/1224322/92133648c71c8df99283bea264e4b6b9/

Text shown in datagrid : watch/replay/1224322/92133648c71c8df99283bea264e4b6b9/

Link in my webbrowser : https://thematravel.webinargeek.com/watch2%Freplay2%F12243222%F92133648c71c8df99283bea264e4b6b92%F

Abu Ghufran Staff answered 2 years ago

Instead of using link and linkoption, I’d recommend to use “template” property.

$col["template"] = "<a target='_blank' href='https://thematravel.webinargeek.com/{Webinar}'>{Webinar}</a>";

If you are using older version, then use $col[“default”] instead of $col[“template”]

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

10 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?