Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect path conversion when page has base tag #321

Open
Nness opened this issue Aug 4, 2024 · 0 comments
Open

Incorrect path conversion when page has base tag #321

Nness opened this issue Aug 4, 2024 · 0 comments

Comments

@Nness
Copy link

Nness commented Aug 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant