Forum
Welcome, Guest
Please Login to access forum.
Re:I need an underscore in the urls in the xml sitemap (1 viewing) 
Go to bottom
TOPIC: Re:I need an underscore in the urls in the xml sitemap
#3651
COBIZ webdevelopment
Fresh Boarder
Posts: 2
User Offline
I need an underscore in the urls in the xml sitemap Karma: 0  
Hi,

I can create these links with JSitemap Pro
http://www.interimcarriere.be/voor-werknemers/vacatures/010713-A53
And those work.

But my component creates these urls, with the jobname added to the end. After an underscore.
http://www.interimcarriere.be/voor-werknemers/vacatures/010713-A53_interim-manager

When I alter the Auto-generated SQL raw query to:
Code:

CONCAT_WS('_', `#__sa_jobs_vacatures`.`vacaturenummer`, `#__sa_jobs_vacatures`.`alias`) AS `vacaturenummer`
The underscore is converted to a dash. This way the url gets like this: http://www.interimcarriere.be/voor-werknemers/vacatures/010713-A53-interim-manager And my router can't split the urls parts (jobnr & jobname) because the underscore is gone. Is there an option where I could fix this? Regards, Gosling
 
Logged Logged  
  The administrator has disabled public write access.
#3652
John Dagelmore
Admin
Posts: 3722
User Online Now
[SOLVED]Re:I need an underscore in the urls in the xml sitemap Karma: 79  
Hi,

normally all ':' and '_' characters are converted to '-' in the Joomla routing.

However when using the CONCAT_WS in JSitemap SQL query you should force any arbitrary character in the URLs, unless the JSitemap URL filtering is active for that field. For this reason ensure that the 'URL filter' option is set to 'No' as in the image below.

Other than that, there is nothing else in JSitemap that converts '_' to '-' and in that case the way that links are constructed and manipulated by that component router should be analyzed better.

Best regards,
John
 
Logged Logged  
  The administrator has disabled public write access.
#3653
COBIZ webdevelopment
Fresh Boarder
Posts: 2
User Offline
Re:I need an underscore in the urls in the xml sitemap Karma: 0  
Wow thanks!

That worked perfect!

Super great!

Thanks,

Gosling
 
Logged Logged  
  The administrator has disabled public write access.
#3654
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:I need an underscore in the urls in the xml sitemap Karma: 79  
Thank you Gosling, hope you like my extension and support

John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top