URL fragment lost

I setup some NFC tags to open certain pages of my sitemap relative to the tag location. However, I found that the URL fragment was being lost and the main sitemap page always opened. I tested with both Chrome and Internet Explorer and got the same results. Maybe is has something to do with this, or something similar. Has anyone else found a way to make this work?