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

Anonymous’s picture

+1

Fix, or workaround would be appreciated!

mautumn’s picture

Struggling 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.

kardave’s picture

I 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

stenjo’s picture

Version: 6.x-2.0 » 6.x-2.x-dev

The patch uploaded in #421818: Faq_Ask block redirects might solve this issue in a better way. Please test it out.

stenjo’s picture

Assigned: Unassigned » stenjo
Status: Active » Fixed

Assume this is OK with the 6.x-2.x-dev version running.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.