Closed
Bug 657058
Opened 15 years ago
Closed 15 years ago
[webby] 500 when a project has a dash in the slug
Categories
(Webtools Graveyard :: Elmo, defect, P3)
Webtools Graveyard
Elmo
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stas, Assigned: peterbe)
Details
Attachments
(1 file)
|
496 bytes,
patch
|
stas
:
review+
|
Details | Diff | Splinter Review |
Reverse URL matching fails for webby.views.project when the slug contains a dash.
Comment 1•15 years ago
|
||
FWIW, http://docs.djangoproject.com/en/1.3/ref/models/fields/#slugfield says that dashes aren't valid slugs.
| Reporter | ||
Updated•15 years ago
|
Priority: -- → P3
| Assignee | ||
Comment 2•15 years ago
|
||
[\w-]+ seems the most common way to do a slug URL
http://stackoverflow.com/questions/1700983/slug-field-followed-by-url
Attachment #535025 -
Flags: review?(stas)
| Reporter | ||
Comment 3•15 years ago
|
||
Comment on attachment 535025 [details] [diff] [review]
Allows _ and - in the slug URL
Review of attachment 535025 [details] [diff] [review]:
-----------------------------------------------------------------
r=me. Perfect! As a nice side-effect, we can use digits in slugs now, too!
Attachment #535025 -
Flags: review?(stas) → review+
| Assignee | ||
Comment 4•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 5•15 years ago
|
||
How do we verify this on the staging server? Thanks!
https://l10n-stage-sj.mozilla.org/
| Assignee | ||
Comment 6•15 years ago
|
||
(In reply to comment #5)
> How do we verify this on the staging server? Thanks!
>
> https://l10n-stage-sj.mozilla.org/
I guess, on dev, you could log in to the Admin interface and change a slug manually to one that contains a hyphen. I don't have a username+password for you. I guess I can create one for you if you like.
Comment 7•15 years ago
|
||
(In reply to comment #6)
> I guess, on dev, you could log in to the Admin interface and change a slug
> manually to one that contains a hyphen. I don't have a username+password for
> you. I guess I can create one for you if you like.
If you would; thanks! Alternatively, another developer/l10n power-user with Admin privs could also verify the bug.
| Reporter | ||
Comment 8•15 years ago
|
||
I created a new webby project with the following slug: firefox-36x-upgrade-survey
The URL is: https://l10n-dev-sj.mozilla.org/webby/firefox-36x-upgrade-survey
Updated•12 years ago
|
Assignee: nobody → peterbe
Updated•6 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•