Ticket #5732 (closed defect: fixed)
baseUrl not computed when url has a parameter
| Reported by: | guest | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Core | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: | ctheiss@… |
Description
When using a server framework it is often the case that url rewriting becomes an issue. For example, if you don't know your application context and are using JSP, you might want to wrap your dojo call in a c:url:
<script type='text/javascript' src='<c:url value="/javascript/dojo/dojo.js"/>'></script>
However, if cookies are turned off, a session identified might be appended to the url:
<script type='text/javascript' src='/myapp/javascript/dojo/dojo.js;jsessionid=23482357984578578542875'></script>
This added parameter breaks the regex in hostenv_browser.js so that baseUrl is not computed:
var rePkg = /dojo(.xd)?.js([?.]|$)/i;
The regex should probably be changed to (notice the extra semi-colon):
var rePkg = /dojo(.xd)?.js([;?.]|$)/i;
to handle this case.
Change History
Note: See
TracTickets for help on using
tickets.