Skip to content

Commit 862e3a4

Browse files
Fix icon font loading issue when BOOTSTRAP_SERVE_LOCAL is True
This commit resolves an issue where the bootstrap-icons.min.css was not loading correctly when 'BOOTSTRAP_SERVE_LOCAL' was set to True.
1 parent 802b10a commit 862e3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_bootstrap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def load_icon_font_css(self):
131131
"""
132132
serve_local = current_app.config['BOOTSTRAP_SERVE_LOCAL']
133133
if serve_local:
134-
icons_url = url_for('bootstrap.static', filename='font/bootstrap-icons.min.css')
134+
icons_url = url_for('bootstrap.static', filename='css/font/bootstrap-icons.min.css')
135135
else:
136136
icons_url = f'{CDN_BASE}/bootstrap-icons@{self.icons_version}/font/bootstrap-icons.min.css'
137137
css = f'<link rel="stylesheet" href="{icons_url}">'

0 commit comments

Comments
 (0)