CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11831] Filepicker profile path issue when root_url defined in config

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Tue Jun 05 12:39:48 -0400 2018

Assigned To:
Version: 2.2.7
CMSMS Version: 2.2.7
Severity: None
Resolution: None
State: Open
Summary:
Filepicker profile path issue when root_url defined in config
Detailed Description:
Issue:
When you have a config.php entry defining a root_url, and a default filepicker
profile with an empty path (meaning you want it to be /uploads), images added
via wysiwyg will have broken paths.

To recreate:
Add a config.php entry, e.g .$config['root_url'] = 'https://mysite.com/'
Create a FilePicker profile, leaving the Top Directory empty
Set this profile to default
Clear cache
Edit a content page with WYSIWYG (I tested with MicroTiny)
Add an image
Submit
View page on frontend, and/or reopen page in Content Manager
path to image will be something like https://uploads/image.jpg

Expected behaviour:
path to image should be either /uploads/image.jpg or
https://mysite.com/uploads/image.jpg

Workarounds:
Define a top level path in FilePicker that is a directory within Uploads
OR, don't define root_url in config.php
Then clear cache and try again


History