Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#616 closed defect (fixed)

Modify ContentPane link processing to skip #anchor-style links

Reported by: anonymous Owned by: anonymous
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Cc: [email protected]
Blocked By: Blocking:


Pages loaded in ContentPane? have their anchor links modified so that they "break out" of the content pane and load a new page instead.

This proposed patch to source:/trunk/src/widget/html/ContentPane.js would prevent it from processing anchor tags:

case "href":
    if(attr[3].charAt(0)=='#'){   //skip anchor tags!
        fixedPath = attr[3];
    } else if(attr[3].search(/^(https?|ftps?|file|javascript|mailto|news):/)==-1){
        fixedPath = (new dojo.uri.Uri(url, attr[3]).toString());
    } else {
        fixedPath = attr[3];

Change History (4)

comment:1 Changed 16 years ago by anonymous

Cc: [email protected] added
Milestone: 0.3release
Version: 0.3

comment:2 Changed 16 years ago by anonymous

Owner: changed from mumme to anonymous
Status: newassigned

I'm happy to merge this. Have you submitted a CLA?

comment:3 Changed 16 years ago by [email protected]

Resolution: fixed
Status: assignedclosed

Fixed as of rev 3565.

Modified test_RemotePaths.html to include anchortags.

Thank you for finding this!

Regards Fredrik Johansson

comment:4 Changed 15 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.