Update .htaccess to include 'ico' file type #793
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.