Comments (7)
We're effected by this as well, I'll take a crack at a PR.
from mojo.
Yes, this is intentional. The generated URL is supposed to be relative to the static directory of the application.
from mojo.
All right, thank you for the clarification.
This is quite a breaking change for us as we have been treating the parameter as just the verbatim src
attribute, doing things like image("https://example.org/test.png")
. But we will cope :)
from mojo.
Absolute URLs are actually supposed to be passed through unchanged. If that doesn't work currently it would be incompatible with mojo.js and therefore a bug.
from mojo.
Here's an instance of the behavior in one of our projects:
src="/https://reasonml.github.io/img/reason.svg"
from mojo.
I am getting to work in this.
PD1: Should I change this behavior in sub _file_url?
PD2: I have done a pull request testing the behavior people said was broken. #2149
PD3: I am under the impression that what I tested only duplicates an existing test from #2112 which tests the inner subroutine instead of the helper image. Maybe this issue should be closed?
from mojo.
I will go ahead and close this issue since it was mostly fixed by #2112.
from mojo.
Related Issues (20)
- v5.38 and module_true: File "/app/x.pl" did not return an application object HOT 10
- Wrong explanation in sample what escapes XML and what is not (<%= vs <%==) HOT 1
- Minimize module loading HOT 4
- One t-test fails, Perl 5.38 on Windows 10 HOT 6
- Mojolicious::Lite silently ignores controller configurations due to missing default namespaces HOT 2
- Morbo issues with Mojolicious 9.34 (change in Mojo/Server.pm) HOT 1
- t/mojo/log.t fails when $ENV{PERL_UNICODE} =~ /D/
- can't run mojo file
- running mojo files HOT 2
- TLS Fingerprinting
- Use of uninitialized value $cb in method lookup at Mojo/Reactor/Poll.pm HOT 1
- Can't locate object method "" via package "Mojolicious::Validator::Validation"
- Request with basic auth does not work when passwords include umlaut HOT 4
- Nesting layouts fails
- URL parsed from a serialised request is never absolute
- Websocket - 101 Switching Protocols
- Feeding render with Mojo::ByteStream is broken when gzipping is triggered HOT 4
- Missing SECURITY.md HOT 5
- Minion UI broken by jQuery removal in latest Mojolicious update HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo.