• Home
  • Get help
  • Ask a question
Last post 1 hour 36 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67915
All time tickets 10498
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.

#2733 – non-SEF url in article doesn't get replaced with SEF URL

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 20 September 2016 16:38 UTC
carrollwhite
Good afternoon.

In an article on my site, there are a few paragraphs with words set as links to other articles. I use non-sef urls for links because sh404SEF replaces them. If, for whatever reason, the sef URL changes, then the link just gets replaced with the new sef URL.

However, one of the links doesn't get replaced. Text is highlighted as a link and the URL is non-sef. When clicked, it successfully goes to the non-sef url.

What are your thoughts on how to troubleshoot and/or correct this?
Tuesday, 20 September 2016 16:43 UTC
wb_weeblr
Hi

I can't say without the actual facts: the full url to the page where I can see that, and access to the article editor where the input is done.
What is the full non-sef involved?

sh404SEF does not do the non-sef replacement. What happens is that towards the end of the creation of the page, before it's sent to the visitor browser, Joomla scans the page content, trying to finds links that needs to be SEFied. If it finds some, it then passes them on to sh404SEF for SEFication.

So there are 2 ways this can happen:

1 - the link is not picked up by Joomla
2 - it is picked by Joomla, but when sh404SEF turns it into a SEF URL, it finds that there's none, and it returns the non-sef.

To find out, we need detailed info on the link involved.

Rgds
 
Tuesday, 20 September 2016 17:03 UTC
carrollwhite
The page:
https://xxxx.com/divorce-questions

Links are in light green (poor choice, I know). You're looking for: Discovery


The link is marked up as:
<a href ="index.php?option=com_content&Itemid=136&catid=9&id=871&lang=en&view=article">


SEF URL destination:
https://xxxx.com/resources/blog/divorce/saving-time-expense-in-divorce-part2-discovery-process

Non-SEF URL destination:
https://xxxx.com/index.php?option=com_content&Itemid=136&catid=9&id=871&lang=en&view=article

What else would you like to see?
Tuesday, 20 September 2016 17:07 UTC
wb_weeblr
Hi

I think the problem comes from the html:


You have left a space between href and the = sign. I'm pretty sure that trumps Joomla when it scans the page and it doesn't pick up the link for that reason.

Rgds

 
Tuesday, 20 September 2016 17:15 UTC
carrollwhite
ugh.

Thank you!
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.