GNOME Bugzilla – Bug 743056
[4.4] Impossible to find [Browse] product overview page from bug report: Link via "Browse" in top bar
Last modified: 2015-02-25 09:15:17 UTC
Comparing https://bugzilla.gnome.org/show_bug.cgi?id=123456 and https://bugzilla-test.gnome.org/show_bug.cgi?id=123456 we had that box in the corner and clicking on the Product name brings you to the overview page. Now there is no link anymore. Wondering whether I should hack up a "[Product overview]" link next to the Product dropdown (not too complicated but increasing our diff).
My idea was to edit template/en/custom/bug/edit.html.tmpl and simply replace the link in front of the "Product:" dropdown in show_bug.cgi, like replacing desc_url = 'describecomponents.cgi' to become desc_url = "page.cgi?id=browse.html&product=$bug.product" somewhere around https://git.gnome.org/browse/bugzilla-gnome-org-upstream/tree/template/en/default/bug/edit.html.tmpl?h=4.4#n229 but not sure how to populate that parameter value correctly so it's not taken literally.
We could also just completely override describecomponents.cgi. Basically have reports/components.html.tmpl which just does a PROCESS pages/browse.html (something like this). bug/edit.html.tmpl is quite long, so just changing a link is pretty invasive.
@Olav: See my comment in bug 743027#c7 however I cannot really test patches much currently (travelling with a different machine) except for on the server :P
*** Bug 744314 has been marked as a duplicate of this bug. ***
Olav's approach in bug 744314 (use the "Browse" link in the top bar by passing the bug.product parameter is way cleaner: https://git.gnome.org/browse/bugzilla-gnome-org-customizations/commit/?id=ce0cc63b87b83c6a6a283c588445e0ea335e8633
In theory deployed in production: https://git.gnome.org/browse/bugzilla-gnome-org-customizations/commit/?h=production&id=1c04ffd8f1822146deed898dcad803a6f139f90b In practice I don't see anything yet, looking at the link target of the "Browse" link in the top bar (Home | New | Browse | Search) which should be https://bugzilla.gnome.org/page.cgi?id=browse.html&product=bugzilla.gnome.org here instead of https://bugzilla.gnome.org/page.cgi?id=browse.html
Nope, something is fishy. I saw it working exactly once and all the other time it does not. Would love to see output / errors from the server here... @av?
It seems to be working just fine here and curl confirms too: <li><span class="separator">| </span><a href="page.cgi?id=browse.html&product=bugzilla.gnome.org">Browse</a></li> Cache issue on your end as I originally suggested?
Andrea: Works fine now too here. Thanks for checking. Let's agree on cache issue on my end...Meh. Sorry for the noise but don't want to break more things than needed (and looking forward to a testing instance where I can wait for one day to let cache issues vanish before pulling to production, I guess).
You actually want FILTER uri for gtk+ -> gtk%2B. I'll commit a fix.