Closed boonebgorges closed 7 years ago
Here's an example that is hanging: OL: http://openlabdev.org/webwork-playground/?post_data_key=webwork_post_data_8cfea9275b0f628b21d240d6aa45f609#/problem/
Generated by clicking "ask for help" from here: http://mathww.citytech.cuny.edu/webwork2/WW-Dev/AddRationalExpressions2/?key=JgtP3lHcqR9wv9lylHcAL5pMV6WnBsNg&effectiveUser=student2&user=student2
Thanks for updating this, @moui72. There are really two different kinds of situations here:
Your observation is about item 2. In this case, I don't think we should 404. Ideally, we'd route the user to a filtered view of all questions that is relevant to the context from which the user has just come in WW. S, when coming from the WW URL you shared above, we'd go to the question index, filtered by WW-Dev and AddRationalExpressions2. But this is more work than I can manage at the moment. So, as an interim fix, I've added logic that redirects users to the main question index when clicking Ask For Help in a non-problem context.
Does it seem like an improvement to you?
@boonebgorges yeah, I think it's fine as is for now with regard to 2.
I've added some logic that couses incorrect problem URLs to show a "not found" message instead of a blank problem form. Test this with a dummy URL like http://openlabdev.org/webwork-playground/#/problem/foo
seems good.
Thanks!
or something like that. It's probably not possible to send a 404 header after the React app has begun to load, but maybe we can do a rewrite or a redirect.