SEO optimisation breaks "insert image" URLs for sub-pages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pluck CMS |
Fix Committed
|
Low
|
Unassigned |
Bug Description
To recreate problem...
Log in to Pluck
Enable SEO optimisation module/htaccess
Create/edit a page/blog post
Insert an image using the "insert image" feature on the right of the page
Select an option from the "sub-page of" drop-down menu.
Save and exit
View site
On a top-level page the image you inserted will appear correctly but if you navigate to the sub-page the image you inserted will not appear. The page source shows me the following:
IMG SRC with SEO :
example.
IMG SRC without SEO (.htaccess file removed):
example.
I don't know how to fix this so I'll have to disable SEO for now. I'm guessing what it would need to do is detect when you're on a sub-page and change the relative file-path to "../images/
Pluck is a great project by the way; let me know if I can help.
Changed in pluck-cms: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
There is a work-around for this issue. It surely isn't pretty, but it will allow you to keep SEO activated:
Open your FTP client. www.domainname/ pluck/images/ news.jpg".
Go to the location where the file is stored. (i.e. 1.news.php)
Download this file.
Open it locally. Seek the link location and change "images/news.jpg to "http://
Do so for each image.
Save the file, upload and overwrite the original file on the server.
Not a pretty solution, but so far the only thing that worked for me without messing about PHP code.
Simon