Closed Bug 927561 Opened 12 years ago Closed 12 years ago

Document.get_absolute_url() providing different result at different times

Categories

(developer.mozilla.org Graveyard :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: davidwalsh, Unassigned)

Details

(Whiteboard: [specification][type:change])

What feature should be changed? Please provide the URL of the feature if possible. ================================================================================== It appears the get_absolute_url() method of the Document model is returning different results within the model and on individual instances. With Document's build_json_data method, get_absolute_url() does not account for the zone alias. Calling the method outside of the model returns the aliased URL. What problems would this solve? =============================== Writers use the URL lookup (via the autosuggest_documents view) to get subnav URLs. We should serve the aliased URL. Who would use this? =================== Eryone. What would users see? ===================== The aliased URL in subnav, etc. What would users do? What would happen as a result? =================================================== N/A Is there anything else we should know? ====================================== Les Orchard is smarter than me.
Need to edit and commit the aliased page before JSON data returns the correct URL. :/ Probably invalid.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.