I have a server setup where the editing servers (http://www1.mysite.com) sit behind varnish cache servers which then present content to the end users at http://www.mysite.com.

When I turned on the CKEditor Link Filter in the Text Format that I'm using, the relative URLs to files in the file system are converted to full/absolute URLs (http://www1.mysite.com/file.pdf) and cached. This is what anonymous site visitors end up seeing as the link which should NOT be the case.

Can we fix so that the CKEditor Link Filter keep paths to files in the file system as relative?

CommentFileSizeAuthor
#3 ckeditor_link_file_path-1585456-3.patch507 bytesanrikun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anrikun’s picture

Version: 7.x-2.2 » 7.x-2.x-dev

Try the latest dev and tell me if it changes something.

nmc’s picture

Tested with latest dev and problem still persists. Links to files still converted to full URLs and cached.

anrikun’s picture

Status: Active » Needs review
FileSize
507 bytes

Please try the attached patch and confirm that it works.

anrikun’s picture

Title: Links to files converted to full URLs » CKEditor Link Filter converts relative URLs of links to files into full URLs
nmc’s picture

Wow. Thanks for the quick turnaround. That patch seems to have fixed it.

anrikun’s picture

Status: Needs review » Fixed

All right, this is now fixed in 7.x-2.x-dev. Thanks for reporting.

anrikun’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Fixed » Closed (fixed)

Fixed in 6.x-2.x-dev too.

cwdee’s picture

Issue summary: View changes

Any idea when this might make it into a recommended release?