A search result looks like this:
---------------
012009_Doran_final.pdf
the Earth’s Deep Interior Michael Poland Geodesy Paul R. Renne Volcanology, Geochemistry, andapplication/pdf attached to: fdfdfdfd
----------------
The anchor around 012009_Doran_final.pdf has this URL:
http://local.policyonline.org.au/?q=sites/default/files/research/012009_...

Clicking on this URL produces a file not found error page. Not good.
The URL should look like:
http://local.policyonline.org.au/sites/default/files/research/012009_Dor...

Comments

farad’s picture

Priority: Major » Minor

Workaround is to activate Clean URLs.

Since the URL is referring to a downloadable file, this dependency on Clean URLs should not exist.
So this is still a bug.

nick_vh’s picture

Any idea how we can resolve this?

We are using $filedocument->path = file_stream_wrapper_get_instance_by_uri($file->uri)->getExternalUrl();

nick_vh’s picture

Status: Active » Postponed (maintainer needs more info)
luigisa’s picture

My solution!
global $base_path;
$path = file_stream_wrapper_get_instance_by_uri($file->uri);
// A path is not a requirement of an entity
if (!empty($path)) {
$filedocument->path = $base_path . $path;
}