By ACV multimedia on Wednesday, 24 June 2020
Posted in General Issues
Replies 3
Likes 0
Views 735
Votes 0
Hi,

We made a modification in the file:
.../components/com_easyblog/themes/wireframe/blogs/entry/default.posts.php in order to restrict permissions to certain users.


if ($post->category_id == 8 && $this->my->guest) {
$currentUri = $post->getPermalink(true, true);
$uri = base64_encode($currentUri);

$url = EB::getLoginLink($uri);

return $post->app->redirect($url);
}


We have duplicated this code for 4 different categories, and now the alias doesn't work well, the url is not correct. In this case it should be /casos-de-exito and it comes out /recursos.

Can the error come from this modification?
The reason why this blog post (Transformación digital: Basket Country (3) http://b1jkw.hosts.cx/casos-de-exito ) is not associated with the single category menu item alias is because the primary category was set it to `Casos de éxito registrado` instead of `Caso de éxito`.

In order to show this blog post format (http://b1jkw.hosts.cx/casos-de-exito/transformacion-digital-basket-country-3) you have to ensure that blog post primary category is set to `Caso de éxito` because your single category menu item is set to this category as well. (screenshot : https://monosnap.com/file/5yBmLNL0aUTiiUlVffhAspnqAnqrIl )

By the way, I did made this "Transformación digital: Basket Country (3)" blog post primary category to `Caso de éxito`, it should show the correct URL now.

Then you have to modify the rest of the blog post regarding this.
·
Thursday, 25 June 2020 15:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Hm, I am not entirely sure what was modified but if you revert those modifications, are the urls the same?
·
Wednesday, 24 June 2020 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I have removed the override to see if it was the one that was giving the error but no, the posts that are within the category of casos de éxito keep appearing with the url of another category with the one of recursos, the two categories are parent category so I don't know why the url changes.
·
Thursday, 25 June 2020 14:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post