Closed Bug 781063 Opened 12 years ago Closed 12 years ago

kuma: preview changes: relative links broken

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allen.l.zhu, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2

Steps to reproduce:

1) Go to e.g. https://developer.mozilla.org/en-US/docs/WebGL/Using_shaders_to_apply_color_in_WebGL
1) Note that the "Next" link at bottom of page works.
2) Edit > Preview changes


Actual results:

"Next" link in preview points to https://developer.mozilla.org/undefined/docs/WebGL/Adding_2D_content_to_a_WebGL_context


Expected results:

"Next" link in preview points to https://developer.mozilla.org/en-US/docs/WebGL/Animating_objects_with_WebGL
Status: UNCONFIRMED → NEW
Ever confirmed: true
Looks as though the locale is missing.
Fix is to add "locale=request.locale," to the env_vars variable within "apps/wiki/kumascript"'s "post" method.

My machine is messed up a bit at the moment, so I can't test.  Luke?
Priority: -- → P2
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/8a02d28f33e22011591c6e09489cdd9ac2a2189b
fix bug 781063 - provide locale to the preview functionality

https://github.com/mozilla/kuma/commit/2a9f20a603c2e0a4e90d1280ee1591d7d48251ba
Merge pull request #587 from darkwing/preview-locale-781063

fix bug 781063 - provide locale to the preview functionality
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.