Hello, when click on external url, there is relative local url before in the address. For example:
/loacal/relative/url/https://external/url
Could you help me?
Thanks
Attach code here and paste link in question.
I found that the problem occurs with HTTPS links only
The problem doesn’t occurs with HTTP links
Example:
https://it.eetgroup.com/search?query=ZP500GM3A023
becomes
/tecnocad/phpgrid.org/https://it.eetgroup.com/search?query=ZP500GM3A023
Where “/tecnocad/phpgrid.org/” is the relative script folder on the server
This is the code:
$col = array();
$col[“title”] = “Link scheda”;
$col[“name”] = “link_scheda”;
$col[“link”] = “{link_scheda}{sku_for}”;
$col[“linkoptions”] = “target=’_blank'”;
$col[“default”] = “Apri scheda”;
$col[“editable”] = false;
$cols[] = $col;
The value of {link_scheda} is “https://it.eetgroup.com/search?query=”
I’d recommend not to use “link” and “linkoptions” as alternate better way is there now.
Instead of above, you can simply use:
$col["template"] = "<a href='{link_scheda}{sku_for}' target='_blank'>link_scheda</a>";
Same problem. It works with “http” url only. Doesn’t work with “https” url
When use “https” it add a relative folder address of the application in the server:
Not Found
The requested URL /tecnocad/phpgrid/https://www.datamatic.it/private/catalogo2/ElencoPrdRicAvanzata_2.htm%3fdesc=DT90AC0287 was not found on this server.