-
Notifications
You must be signed in to change notification settings - Fork 12k
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
baseHref breakes html of head #13851
Comments
Seems to be inserted here if it helps with the investigation. In the meantime, can you provide a reproduction, @DzmVasileusky? A minimal repository, not just instructions, if possible. |
@skreborn I'll try to prepare something |
I would assume that the |
It depends on how |
@alan-agius4 |
… is in a single line When HTML is in a single line using offset + 1 will cause the insertion of the base href tag in the wrong possition. Fixes #13851
… is in a single line When HTML is in a single line using offset + 1 will cause the insertion of the base href tag in the wrong possition. Fixes #13851
It seems that the issue still reproducable when base href in presented in the html.
but served page HTML is Should be added to testcases probably |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Haven't noticedDescription
When adding baseHref parameter to angular.json config ng serve produce html with broken head layout.🔬 Minimal Reproduction
index.pug
compiles by pug.loader to
<!DOCTYPE html><html lang="en"><head lang="en"><meta charset="UTF-8"></head><body class="no-background crx-app"><crx-app></crx-app></body></html>
but served page HTML is
<!DOCTYPE html><html lang="en"><head lang="en"><<base href="/test/">meta charset="UTF-8"></head><body class="no-background crx-app"><crx-app></crx-app><script type="text/javascript" src="runtime.js"></script><script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="styles.js"></script><script type="text/javascript" src="scripts.js"></script><script type="text/javascript" src="vendor.js"></script><script type="text/javascript" src="main.js"></script></body></html>
<base href="/test/">
is inserted in<meta charset="UTF-8">
part of config
🌍 Your Environment
The text was updated successfully, but these errors were encountered: