Hello,
I recently started testing SIMAnswers on my site.
I just found a little bug, that is driving me crazy & was wondering if it would be possible to point me to a solution.
SIMAnswers does use a router.php
All URLS except for two in the menu bar (module) do not work correctly.
In the URL a - is present that is causing the page to load blank.
dashboard/-/63-kram.html
dashboard/-/63-kram.html#myqna
If I remove the /-/ the page loads fine.
dashboard/63-kram.html
dashboard/63-kram.html#myqna
In the router.php file there is a line
else {
$task = '';
$segments[] = '-';
}
If I remove the - the dashboard links work properly, but then the questions do not function.
in router.php
case 'dashboard':
if(isset($query['uid'])) {
$segments[] = $query['uid'].'-'.JFilterOutput::stringURLSafe(SAHelper::getDisplayName($query['uid']));
unset($query['uid']);
}
break;
More in routher.php
function SIMAnswersParseRoute( $segments ) {
$vars = array();
$vars['view'] = $segments[0];
$vars['task'] = $segments[1];
switch($segments[0]) {
case 'dashboard':
if (array_key_exists(2, $segments)) {
$array = explode(":", $segments[2]);
$vars['uid'] = $array[0];
}
break;
Is there an easy way to remove the - to get things working?