Ticket #1403 (new defect)

Opened 3 years ago

Last modified 2 years ago

baseHref not stripped in Edit Link

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.97
Component: Xinha Core Version: trunk
Severity: normal Keywords: baseHref edit link
Cc:

Description

When editing a link the directory component of baseHref is not stripped.

For example baseHref is www.example.com/something

When editing a link the URL inserted is /something/index.php

I fixed this in XinhaCore?.js on line 2957 by replacing "$1" with this.config.baseHref

var _1d4=this.config.baseHref.replace(/(https?:\/\/[\/]+)(.*)$/,this.config.baseHref);

Change History

Changed 2 years ago by gogo

  • milestone changed from 0.96 to 0.97

More investigation needed?

Note: See TracTickets for help on using tickets.