Replace / in ref urls
Add compatibility for examples path