Closed (fixed)
Project:
Taxonomy CSV import/export
Version:
6.x-4.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2009 at 19:23 UTC
Updated:
13 Jan 2010 at 17:57 UTC
After exporting a list the module properly stores the CSV file in the files directory however the download link provided is broken. The url provided is "mydomain.com/admin/content/taxonomy/sites/default/files/Category.csv" when it should give "mydomain.com/sites/default/files/Category.csv"
Comments
Comment #1
Daniel_KM commentedHi,
Thanks for your bug report.
However, I can not identify the problem. Is it in the sentence indicating the result of an export ( "terms of x chosen vocabularies have been exported to file Category.csv")? Here, the reference seems good for me: the source code (line 1030 of taxonomy_csv.api.inc) indicates '!Filepath' => $options['file']->filepath, and this filepath is default path "mydomain.com/sites/default/files/Category.csv" .
Sincerely,
Daniel Berthereau
Knowledge manager
Comment #2
jeremyr commentedIt's the status message that appears after a successful export.
On line 1027 is it says
$message = t('!term_count / !total_terms terms of chosen vocabularies have been exported to file <a href="!filepath">!filename</a> (!filesize KB).I believe the error is the A tag, it should have a slash before !filepath
<a href="/!filepath">!filename</a>because the output of !filepath is "sites/default/files/filename.csv" and not "example.com/sites/default/files/"Comment #3
Daniel_KM commentedHi,
You 're right. With some configurations, url isn't complete. I write a patch for it (6.x-4.9).
Sincerely,
Daniel Berthereau
Knowledge manager
Comment #4
Daniel_KM commentedHi,
Patch has been committed to 6.x-4.9 release.
Sincerely,
Daniel Berthereau
Knowledge manager