*

rooman

  • ****
  • 231 posts
Research problem
« on: September 08, 2022, 07:52:30 PM »
Hello,

When you search in English on the search page
If you want to see the rest of the ads, the first page, the second page
To the end, no problem
If the site is translated into Arabic
Only the first page appears, the rest of the page does not appear, it just keeps showing the first page
The problem is with the link to the page in Arabic
Watch the problem in the video
or via the link https://epsilon.mb-themes.com/
Same problem with template  https://delta.mb-themes.com/%d9%85%d8%b1%d9%83%d8%a8%d8%a7%d8%aa/
Same problem with template https://beta.mb-themes.com/%D9%84%D9%84%D8%A8%D9%8A%D8%B9/
« Last Edit: September 09, 2022, 09:34:10 AM by rooman »

*

rooman

  • ****
  • 231 posts
Re: Research problem
« Reply #1 on: September 09, 2022, 09:37:24 AM »
The problem appears if a category is selected

The error may be here
\oc-includes\osclass\helpers\hPagination.php

Code: [Select]
function osc_search_pagination()
{
  $params = array();
  if( View::newInstance()->_exists('search_uri') ) { // CANONICAL URL
    $params['url'] = osc_base_url().View::newInstance()->_get('search_uri') . '/{PAGE}';
    $params['first_url'] = osc_base_url().View::newInstance()->_get('search_uri');
  } else {
    $params['first_url'] = osc_update_search_url(array('iPage' => null));
  }
  $pagination = new Pagination($params);
  return $pagination->doPagination();
}
« Last Edit: September 09, 2022, 09:40:37 AM by rooman »

*

MB Themes

Re: Research problem
« Reply #2 on: September 09, 2022, 01:21:55 PM »
It looks like url is wrong or osclass cannot recognize page id
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Research problem
« Reply #3 on: September 09, 2022, 01:27:32 PM »
It looks like url is wrong or osclass cannot recognize page id
Yes, the problem is in the URL

*

rooman

  • ****
  • 231 posts
Re: Research problem
« Reply #4 on: September 11, 2022, 12:03:28 PM »
How can I change the URL from Arabic to English?
Or is it possible to disable the Arabic translation of URI ?
« Last Edit: September 11, 2022, 01:41:26 PM by rooman »

*

MB Themes

Re: Research problem
« Reply #5 on: September 11, 2022, 04:56:11 PM »
Not possible, it is generated based on available title
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Research problem
« Reply #6 on: September 11, 2022, 06:45:46 PM »
yes
But if the site is converted to English, the address changes to English
that is my point

*

MB Themes

Re: Research problem
« Reply #7 on: September 11, 2022, 07:01:07 PM »
Sorry it is not clear what you ask. Who convert title?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Research problem
« Reply #8 on: September 11, 2022, 07:06:19 PM »
The site is bilingual
Arabic language and English language
If the site is viewed in English,
The Url appears in English
https://delta.mb-themes.com/vehicles/2
This works
If the site is viewed in Arabic,
The Url appears in Arabic
https://delta.mb-themes.com/%d8%a7%d8%aa/2
this is not working

*

MB Themes

Re: Research problem
« Reply #9 on: September 12, 2022, 10:07:58 AM »
@rooman
It will work when there will be arabic title.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Research problem
« Reply #10 on: September 12, 2022, 06:54:05 PM »
I found the solution
But if there is another better way, it would be better
Because the link becomes long and not beautiful
The solution is in the permalinks in the categories section
There is no way to add anything after the word categories
for example
***/{CATEGORIES}
« Last Edit: September 12, 2022, 07:34:00 PM by rooman »