Skip to content

URL rewrite ignore #1930

Closed
Closed

Description

@kevinmu17

I have this issue where I want the template be build for twig, so for example I have an Img component:

<Img class="size-full" src="{{ image.getUrl({ width: 1200 }) }}" width="600" />

is it maybe possible to mark tags with an ignore attribute so the URL rewrite engine leaves those src untouched?

https://maizzle.com/docs/transformers/base-url

Activity

  1. cossssmin commented on Oct 19, 2026

    @cossssmin
    Member

    Hi, you can configure which tags the transformer handles:

    https://maizzle.com/docs/transformers/base-url#customization

  2. kevinmu17 commented on Oct 19, 2026

    @kevinmu17
    Author

    Yeah I know :) but the problem is I need both scenarios. I have some static files that needs the rewrite, and some dynamic stuff like the example that needs to stay untouched.

    <Img src="{{ image.getUrl({ width: 1200 }) }}" ignore-rewrite />
    <Img src="/img/logo.png"/>

    Output to:

    <Img src="{{ image.getUrl({ width: 1200 }) }}"/>
    <Img src="https://domain.com/static/img/logo.png"/>
  3. cossssmin commented on Oct 19, 2026

    @cossssmin
    Member

    Right, ok I see the value here. We could add something like that, let me think about it, it needs to work on everything that transformer touches.

  4. cossssmin commented on Oct 21, 2026

    @cossssmin
    Member
  5. kevinmu17 commented on Oct 21, 2026

    @kevinmu17
    Author

    The whole world is burning and you deliver this awesome feature haha what a treat to end the day! THANKS!!!

  6. cossssmin commented on Oct 21, 2026

    @cossssmin
    Member

    You're welcome Kevin :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions