Jackson Meira Posted September 11, 2024 at 12:46 AM Share Posted September 11, 2024 at 12:46 AM 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. Link to comment
Solution Alejandro Posted September 11, 2024 at 10:46 AM Solution Share Posted September 11, 2024 at 10:46 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Jackson Meira Posted September 12, 2024 at 02:21 AM Author Share Posted September 12, 2024 at 02:21 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Jackson Meira Posted September 15, 2024 at 12:29 AM Author Share Posted September 15, 2024 at 12:29 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Jackson Meira Posted September 15, 2024 at 12:36 AM Author Share Posted September 15, 2024 at 12:36 AM (edited) This section is only visible with a valid subscription. If you have a valid subscription, please login. Edited September 15, 2024 at 12:38 AM by Jackson Meira Link to comment
Jackson Meira Posted September 15, 2024 at 01:50 AM Author Share Posted September 15, 2024 at 01:50 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 15, 2024 at 05:30 PM Share Posted September 15, 2024 at 05:30 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts