URL fragment lost during redirect with Safari

I’d like to use a redirect to my Vaadin 7 application (using Tomcat), and it’s working fine with all browsers except for Safari. In Safari, the URL fragment is lost which holds key information. Has anyone run into this problem and solved it?

I’m trying to redirect using urlrewriterfilter from:
http://www.mysite.com/myapp-latest/#!xxx
to:
http://www.mysite.com/myapp-1.2.3.4/#!xxx

Thanks.

Since Vaadin uses a hashbang (# is URL fragment), I don’t think it’s possible to get this working with Safari. The hashbang seems like a strange choice to me.

To get around the problem I changed the arhitecture of the solution. Instead of doing the forward on the server side, I witched it to client side with JavaScript. It seems to work fine. The downside is I can’t hide the end URL from the client.