-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
affected_version:2.5Issues Reported for 2.5Issues Reported for 2.5area:coregood first issuekind:bugThis is a clearly a bugThis is a clearly a bug
Description
Apache Airflow version
2.5.0
What happened
#20888 enables the use of markup to style the webserver.instance_name.
However, if the instance name has HTML code, this will also be reflected in the <title> tag, as shown in the screenshot below.

This is not a pretty behaviour.
What you think should happen instead
Ideally, if webserver. instance_name_has_markup = True, then the text inside the <title> should be stripped of HTML code.
For example:
- Set
webserver.instance_nameto some text with markup, like<b style="color: red">title</b> - Set
webserver.Instance_name_has_markuptotrue
This is how the <title> tag should look like:
<title>DAGs - title</title>Instead of:
<title>DAGs - <b style="color: red">title<b></title>
How to reproduce
- Airflow version 2.3+, which is when this change has been introduced
- Set
webserver.instance_nameto some text with markup, like<b style="color: red">title</b> - Set
webserver.Instance_name_has_markuptotrue
Operating System
Doesn't matter
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
affected_version:2.5Issues Reported for 2.5Issues Reported for 2.5area:coregood first issuekind:bugThis is a clearly a bugThis is a clearly a bug