deduplicate parent URI
fix hardcoded base URL