Wordpress can create same URL for a post and a page.
|Reported by:||Prixit||Owned by:|
I am using Wordpress 3.4.2 on my website http://latest-health-news.com/.
I think i found a bug a wordpress.
It can create same URL for a post and a page.
I created a post with URL :http://latest-health-news.com/top-10-brain-diseases/ , then i created a page using same URL, and it was created successfully. I was expecting this it will add a"-2" at the end of page URL, but it didn't happen.
Now when i went back to my home page, which show my last 15 posts, i click on the same post, but it opened the page (the content of post and page were different, so i can distinguish it). There was no way for the visitor of my site to open that post. However the excerpt that was showing on the homepage was correct (it was from the post).
Then i deleted the page to get rid of this problem. But it resulted in another one. Now when i clicked on that post on the homepage, it showed as error message saying that its a "redirect loop". It was happening because i forgot to remove that page from thrash. Now when i removed that page from trash, everything was fine.
I think its a bug in the wordpress that it can create same URL for a post and a page. I think that while creating a post it searches the database of posts if any other post contain the same URL, it don't search the database of pages, while it should do so. Same is in the case of creating a page.
I don't know if this problem happened to anyone before, but i didn't found any satisfactory answer to this problem on internet or i wasn't able to find it.
Change History (7)
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Severity changed from critical to normal
- Status changed from new to closed
- Version 3.4.2 deleted
- Resolution duplicate deleted
- Status changed from closed to reopened
- Version set to 3.4.2