Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Asset URLs have the site root twice #2032
I'm using Statamic in a folder (http://localhost/site_folder) and it's working well, but the URLs for all of the images (even the images that came with the initial installation) look like this: http://localhost/site_folder/site_folder/path/to/image.jpg. The thumbnails show up in the Asset section of of the control panel, but the images aren't displayed when I go to edit them.Describe the bug
I removed the code that adds the siteroot if the hosting is local from the absoluteUrl method in the Asset.php file and now it works for as expected. I haven't tested it in production yet.
I have two containers (it was also doing the same thing with the default Main container which I didn't modify at all).
I have Grid Images:
and Core Services:
Just new'ed up statamic app in sub-folder, and hosting with Homestead. Followed the instructions here, and threw this in the redwood homepage template:
Which gives me this:
And serving those permalinks works fine