Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
620 views
in Q2A Core by
edited by
Hello, how can i rename the permalinks for:
/questions /users /unanswered and so on..
I have installed Q2A in a different language but the links are not translated.
Q2A version: latest
by
anyone ? i really want to change this !

1 Answer

+1 vote
by

Open your qa-config.php file, located in your root directory, uncomment and update these values to your preferences:

$QA_CONST_PATH_MAP = array(
'questions' => 'topics',
'categories' => 'sections',
'users' => 'contributors',
'user' => 'contributor',
);

by
once i do that the page crashes with error 500
https://postimg.cc/1gbyNYL8
by
There's no ending parenthesis and semicolon ); in your code. And like I said, what you should be changing are the values in front of it, not the key..... So it should be:

$QA_CONST_PATH_MAP = array(
    'questions' => 'intrebari',
    'categories' => 'categorii',
    'users' => 'utilizatori',
    'user' => 'utilizator',
);
by
edited by
+1
hello
yeah.. my bad!
it works. how can i edit "ask" and "unanswered" ?

edit:
i figured out how
i just need to add new lines with links like this

$QA_CONST_PATH_MAP = array(
    'questions' => 'intrebari',
    'categories' => 'categorii',
    'users' => 'utilizatori',
    'user' => 'utilizator',
    'ask' => 'intreaba',
    'unanswered' => 'fara-raspuns',
...