samiahmedsiddiqui / custom-permalinks

Set custom permalinks on a per-post basis in WordPress
https://wordpress.org/plugins/custom-permalinks/
GNU General Public License v3.0
20 stars 20 forks source link

View post after create got 404 #53

Open sb-hieuvu opened 3 years ago

sb-hieuvu commented 3 years ago

Hi Sami Ahmed Siddiqui,

I found one issue in your plugin version 2.2.0. It's make post go 404 after create. Please take a look

Step to reproduce:

  1. Category ABC with slug is abc/. => $term_link at includes\class-custom-permalinks-frontend.php line 379 is abc/
  2. Create post with slug abc-test-test and apply to category ABC
  3. Make sure $table at includes\class-custom-permalinks-frontend.php line 353 have that category

in final after your parse_request hook the link is changed to abc/abc/-test-test