Jump to content

Problem With Alias


Jackson Meira
Go to solution Solved by Alejandro,

Recommended Posts

Hello again, some time ago a client reported that when he clicked on some articles, the link was redirected to another article. I thought it was strange and went to check and this was indeed happening. I ran a query in the database and to my surprise there were hundreds of articles with the same alias, and so, when clicking on an item with a duplicate alias, I was always redirected to a specific article.

I entered the Jreviews demo and simulated the same test and to my surprise the problem also occurred.

I will simulate what happens: The system in question is for a company that publishes several documents daily, the article titles always follow a pattern, for example: Process 0001/2024 (alias process-0001-2024) and so on.

By default, whenever an article is created with the same name a -2 is added to the alias, but in my specific case, users sometimes publish articles with the same name and add a number at the end, for example Process 0001/2024 2 (alias process-0001-2024-2), and this is where the problem occurs, because if the name is the same as the other, the alias is created correctly, but if at the end of the title, a number 1, 2, 3, 4... is added, the system will create the same alias, even if it already exists in the database.

This seems to be a problem with Jreviews, I tested it in the default article management of joomla and in all circumstances, the system bypasses the title and creates a unique alias.

I just simulated the example above in the demo. If there is any way around this I would appreciate it, otherwise I will use the SEF function to add article IDs to the URL, this option fixes the problem.

Captura de tela 2024-09-10 214340.png

Link to comment
×
×
  • Create New...