*

Olegs

  • ****
  • 123 posts
sitemap
« on: June 05, 2019, 12:44:25 PM »
Hello,

After sitemap generation, in sitemap.xml i got same link 3 times for each category, and this repetition goes to each category every time.

On my osclass webpage im using 3 different languages,(English,Latvian,Russian) and i think its should be 3 different links for one category. (not same)

please check my sitemap.xml screenshot

on my content when im switching language i got 3 different links. but not on .xml file.

This is example how links are looking in different languages for same category:
ENG. https://domainname/transport-2/car-spare-parts-and-accessories/spare-parts/spare-parts-from-one-car
LV. https://domainname/transports/rezerves-dalas-un-aksesuari/rezerves-dalas/rezerves-dalas-no-vienas-am
RUS. https://domainname/transport/zapchasti-i-aksesuari/avto-zapchasti/zapchasti-ot-odnoi-am


Im not sure, but i think its should be 3 different links, or only 1 link for main Language on website

« Last Edit: June 05, 2019, 04:09:14 PM by Olegs »

*

Olegs

  • ****
  • 123 posts
Re: sitemap
« Reply #1 on: June 06, 2019, 11:36:21 PM »
@Mb themes? what you think about this?

*

MB Themes

Re: sitemap
« Reply #2 on: June 10, 2019, 09:31:46 AM »
@Olegs
It is not possible to create URLs based on locale

In file:
oc-content/plugins/all_in_one/sitemap_generator.php

Try to add after line:
Code: [Select]
foreach($categories as $c) {

code:
   
Code: [Select]
if($c['fk_c_locale_code'] != osc_current_admin_locale()) { continue; }
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots