Project:Project issue file test
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:boombatower
Status:closed (fixed)

Issue Summary

The file_url:

<?php
'file_url' => url($file['filepath']),
?>

Seems to get the absolute file reference: http://d6.drupal.org/var/www/d6.drupal.org/htdocs/scripts/files/issues/pass_2.patch

Comments

#1

Interestingly the following generates a proper link on d6.d.o right now.

<?php
l
($file['filename'], $file['filepath']);
?>

#2

Use file_create_url() (if in files directory) or $GLOBALS['base_url'] instead of url(). Using url() on a file will break when clean URL's is not enabled.

#3

Assigned to:Anonymous» boombatower
Status:active» needs review
AttachmentSize
456980-file-url.patch 1.23 KB

#4

Status:needs review» fixed

Committed.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

Status:closed (fixed)» active

Seems to still occur.

#7

Status:active» closed (fixed)

Nevermind issue on PIFR display side. YES!