Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
581 views
in Q2A Core by
I would my user click to any category before asking a question.

As I see that after clicking to a category the "Ask a Question" url is added with ask?cat=xyz.   xyz is the category number.

Now what I want to do is when anyone click the "Ask a Question" without this category number than it should always transfer the page to the category page so that the user can select the category from posting a new question.

I hope it meight me done by something as

if (cat=0) redirect the page to url/categories

I am not confirmed with it.

Can anyone help me.
Q2A version: 1.5.2
by
moved by
Anyone in this forum who can help me regarding my said problem.
by
Is it possible or not. anyone guuide me.

1 Answer

0 votes
by
It's possible with a redirect as you say, but there is a category selector on the 'Ask a Question' page, so why would you want to do this? You can also use the 'Category' options under admin to insist that every question has a chosen category.
...