Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Bug with 'start' variable in URL
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Bug with 'start' variable in URL

Bug with 'start' variable in URL 14 years, 3 months ago #14241

  • Blogomunity
We use native Joomla 1.5 routing for a component (Component's router handler) and JoomSEF shows correct link like:
/about/forums/8.html?start=20
But after clicking this link you are redirected to:
/about/forums/8.html?limitstart=20

And it breaks the functionality for sure :)

Joomla native router converts 'limit' variable to 'limitstart' and then next to 'start' - but seems JoomSEF doesn't do this.

Please help!

JoomVersion: 3.7.2
Last Edit: 14 years, 3 months ago by .

Re:Bug with 'start' variable in URL 14 years, 3 months ago #14265

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

The standard Joomla router automatically changes the start variable to limitstart, so the component should be prepared for that. Does the component work when you disable JoomSEF completely (in JoomSEF's configuration) and leave only standard Joomla SEO enabled?

Best regards,
ARTIO Support Team
ARTIO Support Team

Re:Bug with 'start' variable in URL 14 years, 3 months ago #14289

  • Blogomunity
Without JoomSEF:
I see correct link /about/forums/8.html?start=20 and 'start' variable is available in request.
All components work correctly having 'start' variable in url.
Joomla doesn't change 'limit' to 'limitstart' in fact, it reverts it back somehow.

With JoomSEF:
link /about/forums/8.html?start=20 is redirected to /about/forums/8.html?limitstart=20 and no 'start' variable in request, 'limitstart' is presented in request.

Re:Bug with 'start' variable in URL 14 years, 3 months ago #14311

  • dajo
  • OFFLINE
  • Posts: 5069
I'm sorry, you're right, although Joomla changes start to limitstart, start remains available in the request. But since Joomla thinks that there should be limitstart variable, JoomSEF redirects it to prevent duplicate content, and after redirection there's no start in the request.
Anyway, there will be an option to disable this redirection in next version of JoomSEF, which should fix your problem.

Best regards,
ARTIO Support Team
ARTIO Support Team

Re:Bug with 'start' variable in URL 14 years, 3 months ago #14339

  • Blogomunity
Many thanks! JoomSEF is the best!
Can we get any patches for fixing this? I strongly believe that our customers can't wait till new release :(

Re:Bug with 'start' variable in URL 14 years, 3 months ago #14351

  • dajo
  • OFFLINE
  • Posts: 5069
In /components/com_sef/joomsef.php around line 1129, there should be the following code:
if (count($_POST) == 0) {
// Non-SEF redirect
if ((strpos($jSef, 'index.php?') === false) && ($oldUrl != $jSef)) {
// Seems the URL is SEF, let's redirect
$f = $l = '';
if( !headers_sent($f, $l) ) {
$mainframe =& JFactory::getApplication();
$mainframe->redirect($jSef, '', 'message', true);
exit();
} else {
JoomSEF::_headers_sent_error($f, $l, __FILE__, __LINE__);
}
}
}

Just comment it out (or remove it) for now. When you later upgrade to new version, the whole file will be replaced with the fixed code.

Best regards,
ARTIO Support Team
ARTIO Support Team
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný