There is a need of changing node/add/faq/?ask=TRUE to node/add/faq/ask. The reason is simple - it is not fully compatible with clean urls and the outcome of it is error during language switching while using local's module (core module) language switching block.
While language switching query is omitted i.e.: node/add/faq?ask=TRUE -> lang-prefix/node/add/faq
Instead of a 'flag' in the query named ask that is accessible by $_GET['ask'] argument named 'ask' accessible by arg() function should be used.
Thus changes goes to the function faq_ask_form_alter : instead $_GET['ask'] ==true use arg(3)=='ask' [arg(3) because of path /node/add/faq/ask].
That change will make this module compatible with Locale and i18n.
Comments
Comment #1
stenjo commentedWould you be able to furnish me with a patch?
Comment #2
nancydruThis has the potential for interfering with the FAQ module itself, which owns the "faq" menu entries. Be very careful.
Comment #3
pawel_r commentedI don't have a patch right now (not enough time). I see it is not only problem with asking but also with answering. It seems it is general problem with locale module. I've found a patch that helps with it.
Comment #4
stenjo commentedIs this still a problem, or is it more to do with the Locale module?
Comment #5
pawel_r commentedit's a problem while using clean urls. I think that more modules (not only Locale) can have problems with mixed urls (clean and query arguments) in general.
patch linked in #3 solves problem for Local module, but will not for any other.
Comment #6
stenjo commentedIncidently, after modifying the module, it is in many ways no longer dependent on the ask=TRUE query and will behave more on permissions rather than the url query. Have you tested this with the D6-2.2 release?
Comment #7
stenjo commentedDoes not seem to be mutch problem with this, so closing.
Feel free to reopen if there are more issues regarding this.
Comment #8.0
(not verified) commentedmore info given