#4277 - Have attachment feature exclude website address
| Identifier | #4277 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Have attachment feature exclude website address |
| Status | Closed (cannot reproduce) |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | Currently when you use the attachment feature to upload an image to a page, it will include the whole address (website.com/uploads/etc...). This is fine in theory, but should you ever need to move your composr website stuff to another directory (such as moving it from a subdirectory to the main directory on a webhost), you could end up with broken images/attachements.
If you manually go in and take out the leading website address stuff (the website.com stuff before /uploads) the attachment still works. So I would like to see the attachment tool simply not put in the website address part (website.com). |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
Composr 'magically' does substitution of the base URL from/to Tempcode {$BASE_URL} so the WYSIWYG works nicely.
Doing fully relative URLs is not reliable as content needs to work from any zone. Using a leading slash would be assuming that Composr will always run on the root of the domain.