correctly get the current structure url for recursive structures