⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Shortened href using callbackColumn



Marty
  • profile picture
  • Member

Posted 28 September 2017 - 10:01 AM

Using GroceryCRUD Enterprise v 2.3.3

 

Possible bug.

When using a callback to create a column with a small width with a link text "View" and a rather long url as href will result in a shortened url of 52 characters, 

 

http://www.thisisanewdomain.com/folder/subfolder/...

 

instead of 

 

http://www.thisisanewdomain.com/folder/subfolder/subsubsub/dosomething.php

 

$crud->callbackColumn(
'event_url', function ($value, $row) {
return "<a href='". $row->event_url. "' target='blank'>View</a>";
}
);

 

In case of another column in de same CRUD with a longer link text, the same url in the href isn't shortened, but is included in full (correct) length!