-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media Routing problem using PHP Built-in Web Server #1119
Comments
I shall take a look as i've been working on media thumbnails and stuff this week. |
I can replicate this with PHP 7.0.7 on a fresh Grav v1.2.3 + Admin v1.4.1. As Ricardo pointed out, the problem is the backwards-slash at the beginning of the src-attribute, seemingly escaping the following forward-slash. To quote myself from Slack:
Thus, I suspect it is a remainder from path-interpretation of the system as a whole, which somewhere has not trimmed the final slash of the installation-path, or concatenates a |
Can you test if your XHR request for |
It is emanating from the Media-iteration, within the method rather than any encoding happening later. As a quick and dirty test, doing this:
resolves it from within the loop. |
This should be solved via Ole's PR. |
I've tested this issue across 3 different windows machines, using the latest php 7.
When launching a localhost via this command:
C:\php\php.exe -S localhost:80 -t C:\projects\core C:\projects\core\system\router.php
Everything works as expected, except when viewing media already uploaded in Admin.js. See picture below:
With the console showing the following error:
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
This is due to the path of the image having an extra slash. By manually removing it, the issue is solved
<img data-dz-thumbnail="" alt="263.jpg" src="\/images/a/4/7/b/3/a47b3570310dd103daf2e3682493d5d389fd289d-263.jpeg">
The text was updated successfully, but these errors were encountered: