Title: Permalink
Last modified: November 12, 2020

---

# Permalink

 *  Resolved [phtw](https://wordpress.org/support/users/phtw/)
 * (@phtw)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/permalink-109/)
 * Hello,
 * i’ve been trying to customize the permalink of my downloads.
 * desired permalink: [http://mypage.com/download/$download_category/$download_name](http://mypage.com/download/$download_category/$download_name)
   
   where $download_category and $download_name are variable.
 * the format is achieved via the following filters:
 *  * dlm_cpt_dlm_download_args: set `"rewrite" => ['slug' => '/download/%download-
   category%']`
    * post_type_link: `return str_replace("%download-category%", $download-
   >get_primary_category, $link)`
 * within the download monitor settings ‘download-endpoint’ is empty and endpoint
   value is ‘download slug’
 * This leads to WP showing me the permalink in the desired format.
    unfortunately
   the permalink for a download leads now always to the frontpage. no 404, no download
   error message.
 * I suspect download monitor to overwrite the final permalink after my filters 
   are executed.
 * Is it possible to set the permalink manually & dynamically?

Viewing 1 replies (of 1 total)

 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/permalink-109/#post-13706389)
 * Hey [@phtw](https://wordpress.org/support/users/phtw/),
 * Please note that our support is limited to the use of our plugin and bugs. Any
   customization is beyond the scope of our support and we would not recommend modifying
   the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Permalink’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

## Tags

 * [dynamically](https://wordpress.org/support/topic-tag/dynamically/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/permalink-109/#post-13706389)
 * Status: resolved