Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #37 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

Comment on docs/wiki20/page6.html

Reported by: plewis@… Owned by: anonymous
Priority: normal Milestone:
Component: Documentation Version:
Severity: normal Keywords:
Cc:

Description

I kept getting a Javascript error with the following line:

return LI(null, A({"href" : ${std.url('/')} + pagename}, pagename))

The error I was getting was "unterminated regular expression literal". In the html source, the above evaluates to:

return LI(null, A({"href" : / + pagename}, pagename))

I think the raw / was what was throwing the error. So I changed things as below, and everything worked as expected.

return LI(null, A({"href" : "${std.url('/')}" + pagename}, pagename))

Change History

comment:1 Changed 14 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

thanks again!

Note: See TracTickets for help on using tickets.