Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 437230

Summary: update breadcrumbs for site_login
Product: Community Reporter: Christopher Guindon <chris.guindon>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 432355    

Description Christopher Guindon CLA 2014-06-11 16:44:55 EDT
The breadcrumbs on site login are wrong:



    Home
    Project
    site_login
    My Eclipse account

It should be:

Home
My Account
My Eclipse account
Comment 1 Denis Roy CLA 2014-06-16 13:44:17 EDT
This is now live.
Comment 2 Christopher Guindon CLA 2014-06-16 13:56:14 EDT
I will need to open a new bug, the links are wrong. 

They go to www.eclipse.org instead of dev.eclipse.org. The home link is the only one that should link to www.eclipse.org
Comment 3 Denis Roy CLA 2014-06-16 13:57:41 EDT
Should we overwrite these in _projectCommon.php or something?
Comment 4 Denis Roy CLA 2014-06-17 16:56:08 EDT
Here's a fix for site_login.  We define breadcrumbs in _projectCommon.php and attach those to $App->generatePage()

https://git.eclipse.org/r/#/c/28650/
Comment 5 Christopher Guindon CLA 2014-06-18 15:30:48 EDT
(In reply to Denis Roy from comment #4)
> Here's a fix for site_login.  We define breadcrumbs in _projectCommon.php
> and attach those to $App->generatePage()
> 
> https://git.eclipse.org/r/#/c/28650/

This wasn't working on the landing page since we were removing 2 levels of the breadcrumb.

I submitted a new patch for this:
https://git.eclipse.org/r/#/c/28650/
Comment 6 Denis Roy CLA 2014-06-18 15:42:06 EDT
> This wasn't working on the landing page since we were removing 2 levels of
> the breadcrumb.

What landing page?

> I submitted a new patch for this:
> https://git.eclipse.org/r/#/c/28650/

What's the $allowed_domain_override for?  You want to prevent altering breadcrumbs on dev.eclipse.org?
Comment 7 Denis Roy CLA 2014-06-18 15:42:23 EDT
> > I submitted a new patch for this:
> > https://git.eclipse.org/r/#/c/28650/
> 
What's the $allowed_domain_override for?  You want to prevent altering
breadcrumbs on www.eclipse.org?
Comment 8 Christopher Guindon CLA 2014-06-18 16:04:27 EDT
(In reply to Denis Roy from comment #6)
> > This wasn't working on the landing page since we were removing 2 levels of
> > the breadcrumb.
> 
> What landing page?

https://dev.eclipse.org/site_login/

When I checkout your patch, the only link that I had was home.


> 
> > I submitted a new patch for this:
> > https://git.eclipse.org/r/#/c/28650/
> 
> What's the $allowed_domain_override for?  You want to prevent altering
> breadcrumbs on dev.eclipse.org?

No, it's a list of domain where we want to override www_prefix. We only need it for dev.eclipse.org but this give us some flexibility to add more domain if needs be.

I will add a comment to explain $allowed_domain_override
Comment 9 Christopher Guindon CLA 2014-06-18 16:17:23 EDT
(In reply to Denis Roy from comment #7)
> > > I submitted a new patch for this:
> > > https://git.eclipse.org/r/#/c/28650/
> > 
> What's the $allowed_domain_override for?  You want to prevent altering
> breadcrumbs on www.eclipse.org?

I am starting to think we don't need this now that I hardcoded the home link.
Comment 10 Christopher Guindon CLA 2014-06-18 16:26:46 EDT
Finally we do need it because $App->getWWWPrefix() will always return http://www.eclipse.org on dev.eclipse.org

We cant update getWWWPrefix() because this will break all the links in the footer and in the main menu.
Comment 11 Christopher Guindon CLA 2014-06-18 16:41:31 EDT
(In reply to Christopher Guindon from comment #10)
> Finally we do need it because $App->getWWWPrefix() will always return
> http://www.eclipse.org on dev.eclipse.org
> 
> We cant update getWWWPrefix() because this will break all the links in the
> footer and in the main menu.

I added a comment:

https://git.eclipse.org/r/#/c/28650/12/eclipse.org-common/system/breadcrumbs.class.php
Comment 12 Christopher Guindon CLA 2014-06-19 14:32:04 EDT
(In reply to Christopher Guindon from comment #11)
> (In reply to Christopher Guindon from comment #10)
> > Finally we do need it because $App->getWWWPrefix() will always return
> > http://www.eclipse.org on dev.eclipse.org
> > 
> > We cant update getWWWPrefix() because this will break all the links in the
> > footer and in the main menu.
> 
> I added a comment:
> 
> https://git.eclipse.org/r/#/c/28650/12/eclipse.org-common/system/breadcrumbs.
> class.php

I moved the patch to eclipse.org-common.git

https://git.eclipse.org/r/28753
Comment 13 Christopher Guindon CLA 2014-07-14 11:19:00 EDT
We are done here.