Domino svg support

I’ve been messing with the Polymer vaadin-grid. If you enable hidable columns, a little graphic svg icon shows in the top right hand corner of the grid that produces a drop down menu of all the columns in the grid. You click one and it’ll hide that column.

Screen Shot 2016-08-12 at 11.04.43 AM

This was working great when running from my local gulp server. However when I put it on Domino, the little icon wasn’t showing, but┬áthe button was there (you couldn’t see it tho) and the menu worked when clicked. I did some research and the only thing I could find on the issue was a Stack Overflow question┬áthat kind-of pointed me in the right direction but didn’t document the entire solution.

The problem is domino delivered the svg with a content-type of application/octet-stream. It should have delivered the svg with a content-type of image/svg+xml. To fix this issue find the httpd.cnf file in the domino data directory and edit that file. Find the images section and add this line:

AddType  .svg	   image/svg+xml	# SVG Image format

Once I restarted http the icon for hiding the columns appeared. Hopefully this helps anyone encountering this same issue. Until next time, Happy Coding.

Share This: