Skip to content

Multipage mode: <script> tag src attribute is incorrectly rewritten as .. #652

@JinDX

Description

@JinDX

When building with multipage mode, the generated HTML contains <script> tags whose src attribute is rewritten to ... This causes the JavaScript files to fail to load in the browser.

This issue occurs even when the original src is a relative path (such as ./assets/js/ecmarkup.js). The rewriting logic in multipage mode does not produce a valid path, resulting in broken script references.

Expected behavior:
The src attribute of <script> tags should be correctly preserved or rewritten to a valid path so that the referenced JavaScript files can be loaded properly in multipage output.

Environment:

  • ecmarkup version: 21.3.0
  • OS: Windows
  • Build command: npm run build-only -- --multipage

Please help fix this path rewriting issue for <script> tags

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