Development

#382 (link_to helper not working correctly when value has slashes)

You must first sign up to be able to contribute.

Ticket #382 (closed defect: invalid)

Opened 7 years ago

Last modified 7 years ago

link_to helper not working correctly when value has slashes

Reported by: anonymous Assigned to:
Priority: minor Milestone:
Component: Version: 0.7.X
Keywords: Cc:
Qualification:

Description

Hi,

I was running into issues with the link_to() helper when trying to extract this value from the database "webspherelogs/2006/03/30/self2-stage-preview.1143762986".

the link_to($app->getLogFile(), $app->getLogFile())was not working propely. The name of the link was showing up properly, but link was being trucancated. It was only showing "webspherelogs/2006".

I dont know if this is a bug or not.

So i replaced this line of code with the following html.

<td> <a href=<?php echo $app->getLogFile() ?> > <?php echo $app->getLogFile() ?> </a></td>

Oscar

Change History

03/31/06 16:18:41 changed by fabien

  • status changed from new to closed.
  • resolution set to invalid.

The URL parameter of a link_to() is a symfony URL or an absolute one. If you URL is already routed, you can't use the link_to() helper, and you don't need to.