Last post 1 hour 35 min ago
Posts last week 81
Average response time last week 44 min
All time posts 70354
All time tickets 10858
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#6338 – How to get sef url if I have a non-sef url through code/api?

Posted in ‘Pre-sale questions’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 30 August 2016 09:14 UTC
sushan
Hi,

I am using sh404sef component on my site to get sef url's.

However, I am not sure how to achieve it through coding in CLI Script.

i.e. suppose I have a non-sef url (for eg. index.php?option=com_mycomponent&view=category&layout=category&Itemid=389&category_id=17)
and
I need a sef url for it, then how can I achieve it by coding in CLI script?

Do I need to pass this non-sef url to any api of sh404sef?
 
Wednesday, 31 August 2016 09:02 UTC
wb_weeblr
Hi,

Sh404sef follows the Joomla API, so you can and should only use the Joomla routing API, ie. Use the Joomla JRoute class.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.