Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i18n, rss and sitemap.xml - no parent slug in links.
#1
On my site i used plugin i18n. Default language (that was used for pages without "_") is russian and the other language is english (pages with "_en"). When sitemap.xml generated, it's all ok with default language. Adress("loc") of page with slug "about" and parent slug "me" is

http://sitename.com/ru/me/about/

But the same english page (with slug "about_en") in sitemap.xml have adress WITHOUT parent slug:

http://sitename.com/en/about/

Rule for my fancyurl is:

%language%/%parent%/%slug%/

What can i do with this trouble with adress in sitemap.xml?
Please, help.

UPD. With i18n_search plugin and RSS is the same problem. In RSS all links in non-default language are without parent slug. This problem also in admin panel (when click on # for page_nondefaultlanguage viewing)

UPD 2. I installed again last stable version of get-simple on another host with only one plugin - i18n. Nothing changes. There are no parent slug in links (sitemap.xml) with non-default language.

UPD 3. I think, that problem maybe in i18n_base/sitemap.class.php ($pageLoc=...) or in admin/inc/basic.php (find_url function).

It's look like there is no parent page for /parent/mypage_en, when i try to get it with get_parent(), $data->parent etc.

In fact, plugin(s) i18n does not work correctly with non-default languages.
Reply


Messages In This Thread
i18n, rss and sitemap.xml - no parent slug in links. - by vestris - 2014-03-28, 21:15:16



Users browsing this thread: 1 Guest(s)