Title: [Plugin: WP-Filebase Download Manager] File permalink with Query-String
Last modified: August 20, 2016

---

# [Plugin: WP-Filebase Download Manager] File permalink with Query-String

 *  [25th-floor](https://wordpress.org/support/users/25th-floor/)
 * (@25th-floor)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-file-permalink-with-query-string/)
 * Hi,
 * WP-Filebase has a problem with query-strings attached to a files permalink. These
   can occur when e.g. MailChimp ([http://www.mailchimp.com](http://www.mailchimp.com))
   automatically adds Google Analytics tracking data (campaign name and so on) to
   all links within a newsletter. The resulting link to a PDF ends up as:
 * [http://my.domain.com/download/myfile.pdf?utm_source=xxx&utm_campaign=xxx&utm_medium=email](http://my.domain.com/download/myfile.pdf?utm_source=xxx&utm_campaign=xxx&utm_medium=email)
 * Which results in a 404 because WP-Filebase uses $_SERVER[‘REQUEST_URI’] instead
   of $_SERVER[‘SCRIPT_URL’] when building the file path from the request. Changing
   occurrences of $_SERVER[‘REQUEST_URI’] to $_SERVER[‘SCRIPT_URL’] in classes/Download.
   php (function ShouldSendDLHeader()) and classes/Core.php (function DownloadRedirect())
   fixes this behaviour.
 * Regards,
 * [http://wordpress.org/extend/plugins/wp-filebase/](http://wordpress.org/extend/plugins/wp-filebase/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Fabian](https://wordpress.org/support/users/fabifott/)
 * (@fabifott)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-file-permalink-with-query-string/#post-2692656)
 * Thanks for reporting, will be fixed next release!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-Filebase Download Manager] File permalink with Query-String’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-filebase_ffff6e.svg)
 * [WP-Filebase Download Manager](https://wordpress.org/plugins/wp-filebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-filebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-filebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-filebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-filebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-filebase/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Fabian](https://wordpress.org/support/users/fabifott/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-file-permalink-with-query-string/#post-2692656)
 * Status: not resolved