Title: parse_request function bug
Last modified: May 29, 2020

---

# parse_request function bug

 *  Resolved [omadijaya](https://wordpress.org/support/users/omadijaya/)
 * (@omadijaya)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/parse_request-function-bug/)
 * Hi all i don’t know it’s bug or not but it so annoying for me,
 * Let’s say we have url slug like this
    `personal-loan/partners/gdf/gdf-personal-
   loan-test`
 * and in the database we have post with post_name called `personal-loan-1`
 * Querying to DB will be good but will problem on query_var.. because in parse_request
   function you have code to replacing all request with original_url (from column
   post_name)
 * so for the current version the output will be like this
    `personal-loan-1/partners/
   gdf/gdf-personal-loan-1-test`
 * but what i expected is something like this
    `personal-loan-1/partners/gdf/gdf-
   personal-loan-test`
 * so my opinion is it will be good just replace when the value are exactly same

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/parse_request-function-bug/#post-13193738)
 * Hi [@omadijaya](https://wordpress.org/support/users/omadijaya/)
 * Sorry for the late reply. Please try this [filter](https://github.com/yasglobal/custom-permalinks#remove-like-query)
   and hopefully it will resolve your issue.
 * Please let me know if problem still persist.
 * NOTE: Before and After adding the above-mentioned filter, please use some crawler
   to verify that none of the permalink is throwing 404.
 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/parse_request-function-bug/#post-13217117)
 * Hi [@omadijaya](https://wordpress.org/support/users/omadijaya/)
 * If the above-mentioned filter didn’t work for you then please feel free to open
   a new Topic and refer this topic for the reference.
 * Regards,
    Sami
 *  Thread Starter [omadijaya](https://wordpress.org/support/users/omadijaya/)
 * (@omadijaya)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/parse_request-function-bug/#post-13219891)
 * Hi [@sasiddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * Sorry for the late reply. The filter are working awesome.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘parse_request function bug’ is closed to new replies.

 * ![](https://ps.w.org/custom-permalinks/assets/icon.svg?rev=1785367)
 * [Custom Permalinks](https://wordpress.org/plugins/custom-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-permalinks/reviews/)

## Tags

 * [parse_request](https://wordpress.org/support/topic-tag/parse_request/)
 * [query_var](https://wordpress.org/support/topic-tag/query_var/)

 * 3 replies
 * 2 participants
 * Last reply from: [omadijaya](https://wordpress.org/support/users/omadijaya/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/parse_request-function-bug/#post-13219891)
 * Status: resolved