Update .htaccess to include 'ico' file type#793
Open
mbraam wants to merge 1 commit intoCombodo:developfrom
Open
Update .htaccess to include 'ico' file type#793mbraam wants to merge 1 commit intoCombodo:developfrom
mbraam wants to merge 1 commit intoCombodo:developfrom
Conversation
Allow for .ico files coming from a customized branding extension to be displayed as favicon in the browser.
Hipska
approved these changes
Jan 9, 2026
Molkobain
requested changes
Jan 9, 2026
Contributor
There was a problem hiding this comment.
Hello @mbraam , thanks for the PR :)
It's a good idea, but in that case we should also update all access restrictions files that allow images to have the same behavior:
.htaccess(Apache) andweb.config(IIS) files generated in theenv-xxxfolders..htaccess(Apache) andweb.config(IIS) files in the/liband/node_modulesfolders.
Contributor
|
Probably only there? Won't the files from the branding extension be placed there instead of |
Contributor
Exact, but as we allow images from the third party folders, I think we should also fix |
Contributor
|
I updated my first comment as there are also the IIS files to update 😅 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow for .ico files coming from a customized branding extension to be displayed as favicon in the browser.
Base information
Symptom (bug)
Reproduction procedure (bug)
Cause (bug)
For iTop instances served by Apache, the current .htaccess file in env-production prevent .ico files (located in env-production/branding) to be displayed by the browser as favicon,
This is due to the statement: <FilesMatch ".+.(css|scss|js|map|png|bmp|gif|jpe?g|svg|tiff|woff2?|ttf|eot)$">
Proposed solution (bug and enhancement)
I replaced both occurences of the statement <FilesMatch ".+.(css|scss|js|map|png|bmp|gif|jpe?g|svg|tiff|woff2?|ttf|eot)$"> with <FilesMatch ".+.(css|scss|js|map|ico|png|bmp|gif|jpe?g|svg|tiff|woff2?|ttf|eot)$">
Checklist before requesting a review
Checklist of things to do before PR is ready to merge
Confirm that this .htaccess file is also to be copied to the env-production folder during setup of iTop.
I did not write a unit test, as there is no code to test here. The .htaccess file is a configuration file used by Apache.