external url problem

Questionsexternal url problem
Francesco Scarongella asked 3 years ago

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

5 Answers
Abu Ghufran Staff answered 3 years ago

Attach code here and paste link in question.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Francesco answered 3 years ago

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=”

Abu Ghufran Staff answered 3 years ago

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>";
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Francesco answered 3 years ago

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.

 

Francesco answered 3 years ago
I correct myself it works perfectly thanks!!!
Your Answer

4 + 14 =

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?