Code Monkey home page Code Monkey logo

Comments (7)

rawleyfowler avatar rawleyfowler commented on June 6, 2024 1

We're effected by this as well, I'll take a crack at a PR.

from mojo.

kraih avatar kraih commented on June 6, 2024

Yes, this is intentional. The generated URL is supposed to be relative to the static directory of the application.

from mojo.

jixam avatar jixam commented on June 6, 2024

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.

kraih avatar kraih commented on June 6, 2024

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.

rawleyfowler avatar rawleyfowler commented on June 6, 2024

Here's an instance of the behavior in one of our projects:

src="/https://reasonml.github.io/img/reason.svg"

from mojo.

sergiotarxz avatar sergiotarxz commented on June 6, 2024

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.

jixam avatar jixam commented on June 6, 2024

I will go ahead and close this issue since it was mostly fixed by #2112.

from mojo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.