1. ptrouw
  2. RO CSVI
  3. Thursday, 09 April 2015
  4.  Subscribe via email
I am exporting a XML file. It uses the language tag to go to the right product table.
But is also adds the language tag to the sef string, which is incorrect. The sef string has already the language part in it.

For example, the generated product URL, sef option:on:
http:/http://www.abc.com/nl/volkswagen/vw-passat-variant.html?lang=nl
As you can see there is already /nl/ done by Joomla sef.
The added ?lang=nl to your string should not be there!

BTW if I process with sef off, you get an error

Using VM 3.0.6
Accepted Answer Pending Moderation
The added ?lang=nl to your string should not be there!
CSVI creates a non-SEF URL with all the needed settings, this includes the language code if multi-language is enabled. When this is turned into a SEF URL apparantly the lang=nl is not removed by the router. Now this doesn't do anything to the URL I guess you don't find it fancy looking :)

The easy way around this is to simply make a replacement rule where you search for ?lang=nl and have it removed with nothing as a regular text replacement. Select this rule for the product_url field and the ?lang=nl will be removed from the URL.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Replace is not easy, it is a cron job each night generating a new file.
I know it is working, but an affiliate wants the url to be ended with .html!
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Replace is not easy, it is a cron job each night generating a new file.
This has nothing to do with it being a cron job or not.

You now get the URL
http:/http://www.abc.com/nl/volkswagen/vw-passat-variant.html?lang=nl
making use of the replacement rule in CSVI you will get the URL
http:/http://www.abc.com/nl/volkswagen/vw-passat-variant.html
that is what you want or not?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Yes.
I thought you meant a manually replace in the file!
  1. more than a month ago
  2. RO CSVI
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!