Closed (fixed)
Project:
FAQ_Ask
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Oct 2009 at 09:14 UTC
Updated:
17 Jun 2010 at 10:30 UTC
Jump to comment: Most recent
After submitting a question, user has been redirected to the question. But the user can not view its faq node while the question doesn't have an answer.
So the user gets an error page (access denied), and a drupal notice (Your question has been submitted...) at the same time.
I think the user should be redirected to the default faq pages.
Comments
Comment #1
Anonymous (not verified) commented+1
Fix, or workaround would be appreciated!
Comment #2
mautumn commentedStruggling with the same issue - so near and yet so far! - and after trying a number of things, I finally got the following to work :-
1. Ajax for FAQ: Enabled [unticked] (i.e. disabled), Disable Rediret [unticked], Remove After Form Submit [ticked]
2. Add simple Rule:-
Event: After saving new content. If content is FAQ.
Do page redirect: with these settings: Force redirecting to the given path, even if a destination parameter is given + Immediately issue the page redirect).
Now, after submitting the FAQ, the anonymous user is presented with a message and is left on the FAQ page. Perfect!
It would be very cool if this usecase was the default behaviour: I cannot see why one would want any other outcome - especially for anonymous users?
Thanks very much indeed for this module NancyDru.
Comment #3
kardave commentedI agree, a more elegant solution is prefered.
Maybe after the (Anonymous) user submits the question a message should be displayed about the successful submission.
The message could be displayed on an empty page (also containing a link back to the faq list page), or on the faq page after redirection.
Access denied message is a no way.
BTW, this module rocks! :)
Thanks,
David
Comment #4
stenjo commentedThe patch uploaded in #421818: Faq_Ask block redirects might solve this issue in a better way. Please test it out.
Comment #5
stenjo commentedAssume this is OK with the 6.x-2.x-dev version running.