[eluser]breaddes[/eluser]
I have a controller that manages everything about comments. That means if you comment a review, story or article an ajax request goes out to the comment controller. If it was successful you get a little html-fragment back that says something like: "Your comment was saved successfully." That's simple and it works.
Now that sounds nice with ajax but we have to care about users that don't have javascript enabled. If they dispatch the comment form they will be directed to the comment controller which as a matter of course only outputs a little html fragment. They get lost of the actual site context.
The only solution I can think of is putting the comment controller code in every controller that needs a functionality to comment. Then everything would be posted back to the same site and the output would be fine. That isn't a nice way to do it because you have multiple lines of the same code.
Does anyone have an advice for that?