Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on "edit" link below non-Q&A post results in 404 Not Found

Post

"edit" link below non-Q&A post results in 404 Not Found

+6
−0

I tried to edit a recipe I'd posted, by using the "edit" link below the post text. That gave me a 404 Not Found error.

Looking at the URL, I noticed that it says /answers/.../edit, which is wrong because that's not an answer. (It's not a question, either.)

When I manually changed the URL to /articles/.../edit instead, editing worked fine and I was able to save my changes.

This is almost certainly related to URLs in RSS feeds wrongly assume that all top-level posts are questions (which has been fixed). Given that this is already two very similar bugs, I wouldn't be surprised if there are some other hardcoded assumptions elsewhere along the lines of "top-level posts are always questions, and anything that's not a question is an answer".

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (4 comments)
General comments
Monica Cellio‭ wrote over 4 years ago

That's weird; I edited a recipe last night. Investigating.

ArtOfCode‭ wrote over 4 years ago

Ha! Here was me thinking I'd get away with this one because I had a fix about to go out... this should be fixed in the next... 5 minutes.

luap42‭ wrote over 4 years ago

You can blame me for this bug. When I started working on suggested edits (which are now available BTW. Yay!), there were no articles yet. At that time, it made sense to say, that a post is either an question or an answer. When I added support for them, I wrongly kept some of these assumptions (as you guessed correctly).

Canina‭ wrote over 4 years ago

I'm probably one of the people who are least inclined to blame anyone specifically, @luap42 :-) I simply want the software that runs Codidact to be as good as it can be, and since I can't really contribute patches, I figure I can at least contribute clear bug reports so others can reproduce and ultimately fix the issues I encounter. cc @ArtOfCode