Closed
Bug 133283
Opened 21 years ago
Closed 21 years ago
show_bug.html.tmpl uses 'urlbase' variable, but it is never set
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 133425
People
(Reporter: ddkilzer, Assigned: ddkilzer)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
689 bytes,
patch
|
Details | Diff | Splinter Review |
The show_bug.html.tmpl template uses a 'urlbase' variable for one link in the HTML, but 'urlbase' is never set by show_bug() in bug_form.pl or in show_bug.cgi. Since none of the other HREFs use urlbase, I'll assume it is safe to remove it. Patch to follow shortly. Bug 110012 is the original show_bug.cgi templatization bug.
Assignee | ||
Comment 1•21 years ago
|
||
Target -> 2.16. Keywords: patch, regression, review. Add CCs. Assign to me.
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•21 years ago
|
||
Removes "[% urlbase %]" from show_bug.html.tmpl.
Comment 3•21 years ago
|
||
I'm sure we did this a while back to make right-click "bookmark this link" and drag-to-bookmark work right - but now I think about it, they should work anyway, shouldn't they? urlbase should be equal to Param('urlbase')... Gerv
Assignee | ||
Comment 4•21 years ago
|
||
I guess my point is that if we are going to use 'urlbase' in front of one HREF, we should use it in front of all of them. I thought it would be simpler just to remove this one instance of it so that this HREF would be like all the others in this template. If we'd rather set urlbase in globals.pl or in bug_form.pl, let me know (which one).
Comment 5•21 years ago
|
||
Comment on attachment 75980 [details] [diff] [review] Patch v.1 Right. I found what it was - bug 53951. If you save show_bug.cgi locally, it makes the bug number an absolute link to take you back to the current version. So, we need to keep it, and populate 'urlbase' with the Param. Gerv
Attachment #75980 -
Flags: review-
Assignee | ||
Comment 6•21 years ago
|
||
Add 'urlbase' to template variables rather than change template to remove 'urlbase' output.
Attachment #75980 -
Attachment is obsolete: true
Comment 7•21 years ago
|
||
+ # Used by initial link to bug itself on the web page + $vars->{'urlbase'} = Param('urlbase'); That comment took me quite a while to understand. We could either eliminate it, or say something like: # We make the bug number an absolute link so it still works when the page is saved Gerv
Comment 8•21 years ago
|
||
I fixed this in the patch in bug 133425 as well. Gerv
Assignee | ||
Comment 9•21 years ago
|
||
Yes, I agree, that was a bad comment. I wrote it without having a clear description in my head. :^) FWIW, the issue brought up in Bug 53951 would be best fixed by adding a BASE tag to the HEAD section of the web page like this: <BASE HREF="[% urlbase FILTER uri %]"> That would fix every link in the web page once it was saved from a web browser. This could optionally be added to every Bugzilla web page, though I'm not sure if that would be desirable or not. Should this bug be marked RESOLVED DUPLICATE of Bug 133425 then?
Comment 10•21 years ago
|
||
> That would fix every link in the web page once it was saved from
> a web browser.
Is that what browsers do with the BASE tag? Apply it when the file is local and
the link is relative?
I think that's a change which requires more thought than we have time for in
2.16. Let's fix it the easy way now, and think about <base> later.
Gerv
Assignee | ||
Comment 11•21 years ago
|
||
Filed Bug 133549 regarding use of the BASE tag in a future release of Bugzilla.
Assignee | ||
Comment 12•21 years ago
|
||
Different approach to fix this bug was included in Patch v.2 of Bug 133425. Marking RESOLVED DUPLICATE. *** This bug has been marked as a duplicate of 133425 ***
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Comment 13•21 years ago
|
||
clearing milestones on DUPLICATE/WONTFIX/WORKSFORME/INVALID bugs (so they'll show up as needing triage if they get reopened)
Target Milestone: Bugzilla 2.16 → ---
Updated•10 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•