Skip to content

Incorrect path conversion when page has base tag #321

Open
@Nness

Description

@Nness

Our MVC's _Layout.cshtml has <base href="/app/"> base tag, which cause all relative link became unusable in debug mode.

  • ~/bundle.scss or /bundle.scss will translate to {folder}/file.scss, where the browser will query on app/{folder}/file.scss
  • ~/bundle.js will translate to list of static javascript path, e.g. {folder}/file.js, the browser will also append base path to be query on app/{folder}/file.js

The only way to get around at moment is to add inline inside link or script tag. Even then, any file referenced in the scss file is still broken.

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