Add uri rewrites as a work around neo4j issue #2985