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

Daniel_KM’s picture

Hi,

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

jeremyr’s picture

It'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/"

Daniel_KM’s picture

Hi,

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

Daniel_KM’s picture

Version: 6.x-4.8 » 6.x-4.9
Status: Active » Closed (fixed)

Hi,

Patch has been committed to 6.x-4.9 release.

Sincerely,

Daniel Berthereau
Knowledge manager