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
Hi,
Please share following to regenerate case:
- Related grid code
- Text stored in database field
- Screenshot of what is shown in datagrid
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
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”]