Open
Bug 1468848
Opened 7 years ago
Updated 2 years ago
Change presentation of show_bug.cgi urls to be /bug/ID or /bug/ALIAS.
Categories
(bugzilla.mozilla.org :: General, enhancement)
Tracking
()
NEW
People
(Reporter: dylan, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
This bug changes the history.replaceState() code, and URL rewriting to allow /bug/ALIAS_OR_ID
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
I want to do this, but I think we should sit on it for a little bit. Reve
Comment 3•7 years ago
|
||
We should add a default value for the vagrant vm/docker for the localconfig_canonical_url. Without it that silently fails and the url is empty in the places it is needed.
Comment 4•7 years ago
|
||
Also i personally think we shouldn't change the displayed url unless we also change the way all the links are outputted. Just my 2 cents
Comment 5•7 years ago
|
||
Bug 1497070 shows `<base href>` is problematic. Better to mass-convert links to absolute path.
See Also: → 1497070
Comment 7•7 years ago
|
||
WIP including `show_bug.cgi?id=` => `bug/` conversion: https://github.com/kyoshino/bmo/compare/bug-1468848-bug-id
Comment 8•7 years ago
|
||
BTW I didn’t include /bug/ALIAS in the WIP because
1) alias can include any characters unlike general slugs (range of `\w` regex), may not be suitable for URL
2) alias can be multiple: Bug 1012506 shipped with Bugzilla 5 has to be backported to Bugzilla 6/Quantum
Comment 9•7 years ago
|
||
All the links and redirects are now using an absolute path, so we can do this. Will update my WIP branch and send a PR. Speaking of /bug/alias, we’ll only accept slug-ish [\w\-]+ aliases as discussed on IRC. No multiple alias support.
Assignee: dylan → kohei.yoshino
Comment 10•6 years ago
|
||
I’d like to see this in Bugzilla 6.0 but not sure if we have time. Note that the path has to be customizable like the term “Bug”. It can be /bug/[ID] by default, but some installations may want to use /issue/[ID] or /ticket/[ID].
Blocks: bugzilla-6
Comment 11•6 years ago
|
||
Is there a way that I will be able to convert all the thousands of bugzilla bug URL's in my history/places.sqlite to the new URL format, so that, I will still be able to tell which bug I have visited in the past
Flags: needinfo?(kohei.yoshino)
Updated•6 years ago
|
Assignee: kohei.yoshino → nobody
Updated•2 years ago
|
Attachment #9384121 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•