Joomla! Discussion Forums



It is currently Sun Nov 22, 2009 8:04 pm (All times are UTC )

 


Forum rules

Forum Rules
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 14 posts ] 
Author Message
Posted: Wed Oct 17, 2007 2:32 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6420
Location: Nebraska
I am unable to post in the developer forums (I think it has to do with the MOM classification.) I would appreciate it if a moderator would move this bug report into the Joomla! v 1.5 Q&T forum for me.

Thanks!
Amy :)

Still an error in SVN Revision 9241.

Also - the URL I believe is in error is the one that INCLUDES /1-latest-new/.

AmyStephen wrote:
jiakomo wrote:
Now, the link to the volunteers article (from front page) is http://www.rosberg-online.com/the-news/ ... teers.html
Click on it to view the article. The title is linkable to the url http://www.rosberg-online.com/the-news/ ... teers.html

Duplicate content.

Is this a SEF bug or what am I doing wrong?


MY LOCALHOST v 1.5 RC3

Frontpage title and read more: http://localhost/joomlav1.5rc3/the-news/1-latest-news/6-we-are-volunteers.html
The News, We are Volunteers "Read more..." http://localhost/Joomlav1.5RC3/the-news/1-latest-news/6-we-are-volunteers.html

But, when you click the title on the article page /1-latest-news drops out and the URL is: http://localhost/Joomlav1.5RC3/the-news ... teers.html

I believe this is a bug. I get the same results with the most recent SVN updates. The URLs should be the same, and honestly, I believe the URL should not include 1-latest-news.

I'll report this, thanks.
Amy :)

_________________
http://Twitter.com/AmyStephen
Unofficial Joomla Developer and Site Builders Network http://AllTogetherAsAWhole.org


Top
   
 
Posted: Fri Oct 19, 2007 11:49 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Sep 28, 2007 4:30 pm
Posts: 79
Confirmed.

Joomla! generates different "Read more..." URLs for the same article, depending on where the article is listed (different read more on front page type than on category/section blog page type).


Top
  E-mail  
 
Posted: Sat Nov 17, 2007 5:17 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat May 13, 2006 11:55 pm
Posts: 29
This is still an issue in the latest svn (9367).

Also, let me note that if the URL that is in error is the one that includes "/1-latest-new/",  then *ALL* article (sef) URLs of live RC3 websites will be changed when this bug is fixed.

Web spiders will certainly not like this.


Top
  E-mail  
 
Posted: Sat Nov 17, 2007 5:21 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6420
Location: Nebraska
jiakomo wrote:
Web spiders will certainly not like this.


We have to fix things. Those of us venturing out into RC territory certainly knew what we signed up for, right?

Amy :)

_________________
http://Twitter.com/AmyStephen
Unofficial Joomla Developer and Site Builders Network http://AllTogetherAsAWhole.org


Top
   
 
Posted: Mon Nov 19, 2007 3:31 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat May 13, 2006 11:55 pm
Posts: 29
Ofcourse, Amy. Hopefully this will be fixed by the time of the next RC release.

Also, shouldn't this be tagged "confirmed" ?


Top
  E-mail  
 
Posted: Mon Nov 19, 2007 4:29 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6420
Location: Nebraska
jiakomo wrote:
Also, shouldn't this be tagged "confirmed" ?


Apparently, it has not been confirmed, yet, by the developers. Once they have tested and found it to be true, that's when the status will change.

Amy :)

_________________
http://Twitter.com/AmyStephen
Unofficial Joomla Developer and Site Builders Network http://AllTogetherAsAWhole.org


Top
   
 
Posted: Mon Nov 19, 2007 10:48 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Oct 28, 2007 7:18 pm
Posts: 8
The problem with category-polluted links can be worked around by a small change in \components\com_content\router.php:

if(isset($query['catid'])) {
$segments[] = $query['catid'];
unset($query['catid']);
};

=>

if(isset($query['catid'])) {
// We don't want category stuff in the route.
// Article links should be based on menu item aliases.
//$segments[] = $query['catid'];
unset($query['catid']);
};

This works for me but I guess the catid is included for a reason ...? , so I'm uncertain of which side effects this change could have.

But even with this hack the section blog layout readmore links will often be wrong (the directory corresponding to the category level is missing). To fix these links as well, I have changed one line in \components\com_content\views\section\view.html.php:

$item->readmore_link = JRoute::_("index.php?view=article&id=".$item->slug);

=>

$item->readmore_link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->sectionid));


Now

/section-menu-alias/category-menu-alias/444-article-alias
/section-menu-alias/category-menu-alias/33-category-name/444-article-alias
/section-menu-alias/category-menu-alias/33/444-article-alias
/section-menu-alias/444-article-alias

have all become

/section-menu-alias/category-menu-alias/444-article-alias


Top
  E-mail  
 
Posted: Tue Nov 20, 2007 3:44 am 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6420
Location: Nebraska
Awesome.  8) (The other three posts you had weren't too shabby, either!)

Amy :)

_________________
http://Twitter.com/AmyStephen
Unofficial Joomla Developer and Site Builders Network http://AllTogetherAsAWhole.org


Top
   
 
Posted: Tue Nov 20, 2007 3:38 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6420
Location: Nebraska
@webstudent -

Do you see the issue Jick is raising as related to this patch you are proposing?

Thanks!
Amy :)

_________________
http://Twitter.com/AmyStephen
Unofficial Joomla Developer and Site Builders Network http://AllTogetherAsAWhole.org


Top
   
 
Posted: Tue Nov 20, 2007 10:38 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat May 13, 2006 11:55 pm
Posts: 29
webstudent wrote:
The problem with category-polluted links can be worked around by a small change in \components\com_content\router.php:
...


Great! Thanks!

I will try this soon.


Top
  E-mail  
 
Posted: Wed Nov 21, 2007 9:05 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Oct 28, 2007 7:18 pm
Posts: 8
AmyStephen wrote:
@webstudent -

Do you see the issue Jick is raising as related to this patch you are proposing?

Thanks!
Amy :)


Amy,
the thread started by Jick seems to deal with problems related to the change of base url. (I've chosen to temporarily solve the baseurl problems by url rewriting in .htaccess.) The problem with article links discussed in this thread is not related to the baseurl problems.

Regarding the article routing issue, there is one more thing that should be mentioned. As article links depend on the menu item aliases, it is important to have only one com_content menu item per article section/category. If more menu links to the same content layout is needed, use a dummy menu, and let the other menu items be external links (index.php?Itemid=xxx) pointing to the real menu item which resides in the "dummy menu". The dummy menu should have it's menu items published, but should not be associated with a published menu module.


Top
  E-mail  
 
Posted: Wed Nov 21, 2007 1:52 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6420
Location: Nebraska
#1 - thanks for looking at Jick's issue.

#2 - I am so encouraged to hear you say use an external link pointing to the original URL for multiple URLs. I preach that message all the time. It is *the* way to avoid user generated duplicate content. With this issue resolved, I believe system generated duplicate content is gone.

Sincere thanks for your help.
Amy :)

_________________
http://Twitter.com/AmyStephen
Unofficial Joomla Developer and Site Builders Network http://AllTogetherAsAWhole.org


Top
   
 
Posted: Thu Nov 22, 2007 6:43 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat May 13, 2006 11:55 pm
Posts: 29
webstudent wrote:
The problem with category-polluted links can be worked around by a small change in \components\com_content\router.php:

if(isset($query['catid'])) {
$segments[] = $query['catid'];
unset($query['catid']);
};

=>

if(isset($query['catid'])) {
// We don't want category stuff in the route.
// Article links should be based on menu item aliases.
//$segments[] = $query['catid'];
unset($query['catid']);
};


This solved my problems, too. No side-effects so far.

Thanks!


Top
  E-mail  
 
Posted: Mon Dec 10, 2007 10:22 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6420
Location: Nebraska
Linking to this report.

_________________
http://Twitter.com/AmyStephen
Unofficial Joomla Developer and Site Builders Network http://AllTogetherAsAWhole.org


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group