Closed Bug 283341 Opened 20 years ago Closed 20 years ago

[devmo] under this directory, history and Edit link are broken.

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: spam, Unassigned)

References

()

Details

Attachments

(2 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: -

under http://developer.mozilla.org/xpcom/api/, 
history and Edit link are broken because those sources are xml and they point html.

Reproducible: Always

Steps to Reproduce:
Alias: devmo
Alias: devmo
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: under this directory, history and Edit link are broken. → [devmo] under this directory, history and Edit link are broken.
Comment on attachment 175331 [details] [diff] [review]
under http://developer.mozilla.org/xpcom/api/ , point xml files

Change the variable 'history' to 'sourcefile' and indent that line so it's more
readable. E.g.

[%- sourcefile = 
      IF (matches = template.name.match('^xpcom/api/(\w+).html$')); THEN;
	"xpcom/api/"; matches.0; ".xml";
      ELSE;
	template.name; END; -%]
Attachment #175331 - Flags: review?(fantasai.bugs) → review-
Attachment #175331 - Attachment is obsolete: true
Attachment #175334 - Flags: review?(fantasai.bugs)
Attachment #175334 - Flags: review?(fantasai.bugs) → review+
commited. Thanks to jwatt for report :)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Attached patch 175334 didn't fix subdirectory (obsolete) — Splinter Review
175334 fix only xpcom/api, not recursive.
add urlencode of '+'
Attachment #176881 - Flags: review?(fantasai.bugs)
Comment on attachment 176881 [details] [diff] [review]
175334 didn't fix subdirectory

The first two lines seem fine. I don't know what the second two lines are
trying to fix. Filenames shouldn't have whitespace in any case.
not whitespace.
some file such as http://developer.mozilla.org/xpcom/api/nsACString/operator+=
 includes '+' char, that must be escaped.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment on attachment 176881 [details] [diff] [review]
175334 didn't fix subdirectory

>-      [%- sourcefile = 
>+      [%- sourcefile_ = 

There is no need to change the name of this variable.

>+        END; -%][%- sourcefile = 

The - next to the % is supposed to trim whitespace, so
you do not need to break the indentation like this. The
END should stay where it was, and the new directive should
start on a new line, just like the previous one.

>+        IF (matches = sourcefile_.match('(.*)\+(.*)'));

You should probably use the .replace method instead of
writing your own.

Also, while we're at it, let's %escape '=' and '&', too.
Attachment #176881 - Flags: review?(fantasai.bugs) → review-
Attached patch using replace()Splinter Review
actually, tt pulls those value asis and does almost same though.
Attachment #176881 - Attachment is obsolete: true
Attachment #177672 - Flags: review?(fantasai.bugs)
Attachment #177672 - Flags: review?(fantasai.bugs) → review+
commited.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: