Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
551 views
in Q2A Core by
Hi,

I am digging in 1.4.3 code for some customizations.

There is any reason for which in qa-page.php the $QA_CONST_ROUTING elements have keys with or without  the ending /   ?

        'questions/' => QA_INCLUDE_DIR.'qa-page-questions.php',

        'hot' => QA_INCLUDE_DIR.'qa-page-hot.php',

?
Q2A version: 1.4.3

1 Answer

0 votes
by
The trailing slash in a key means that it will match URLs that start with the key, rather than only matching the key exactly.
by
For hot page this was changing from hot to hot/ in 1.5 beta 1. This is because of a bug (I have updated myself in 1.4.3 core and I am wondering if will be any downside)?
by
In Q2A 1.5 it can be possible to browse hot questions by category, so that's why the slash was added. (See QA_ALLOW_UNINDEXED_QUERIES in qa-config.php)
by
thanks gidgreen
...