By stefano rigazio on Monday, 17 March 2014
Posted in General Issues
Replies 3
Likes 0
Views 548
Votes 0
The problem is simple: every time there is a wrong url for the content of EasyBlog get redirected to the campaign / latest.html
It 'a bug or is there some setting to control?
Because when there is a wrong url in EasyBlog there is an error page? is required by the search engines and not a redirect.

thanks a lot

stefano
Hello Stefano,

I am sorry for the late reply.
About:
The problem is simple: every time there is a wrong url for the content of EasyBlog get redirected to the campaign / latest.html
It 'a bug or is there some setting to control?
Because when there is a wrong url in EasyBlog there is an error page? is required by the search engines and not a redirect.
Actually it was not a bug, but we purposely redirect to the latest blog page so it will look better. If you want to change it you can hack on \components\com_easyblog\views\entry\view.html.php .
Change this:
 $mainframe->redirect( EasyBlogRouter::_( 'index.php?option=com_easyblog&view=latest' , false ) , JText::_('COM_EASYBLOG_ENTRY_BLOG_NOT_FOUND') );
$mainframe->close();

to
 JError::raiseError(404, JText::_( 'COM_EASYBLOG_ENTRY_BLOG_NOT_FOUND' ));
return;


Hope this will help.
Thanks.
·
Monday, 17 March 2014 19:32
·
0 Likes
·
0 Votes
·
0 Comments
·
ok solved, because the guidelines of search engines on a site if a url is wrong, the correct thing to do is to manage it with the 404 that means that it is an error page, do the redirect means that the page no longer exists but has been replaced by a new, and in your case there could be thousands of pages which are "replaced" by a single incorrect page.
thanks a lot


stefano
·
Monday, 17 March 2014 21:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stefano,

Yep, we are aware of this and we're making a big change in 4.0
·
Monday, 17 March 2014 23:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post