Even with "shortest path when possible" in link-format-setting and unique filename path OB insertes full path in links - sometimes

If you can’t reproduce it without plugins, this is likely a plugin problem. Follow the troubleshooting instructions here: