fixing redirects when editing linked instances