fix link to proposed record

Changed files
+14 -9
app
change-request
[uri]
+14 -9
app/change-request/[uri]/page.tsx
··· 169 169 170 170 <div className="bg-surface border-subtle shadow-card p-4"> 171 171 <h3 className="font-medium text-primary mb-2">Proposed Changes</h3> 172 - <Link 173 - href={changeRequest.proposedRecord} 174 - target="_blank" 175 - rel="noopener noreferrer" 176 - className="inline-flex items-center text-sm text-accent hover:text-accent-hover transition-colors" 177 - > 178 - View Proposed Record 179 - <ExternalLink className="h-4 w-4 ml-1" /> 180 - </Link> 172 + {(() => { 173 + // Parse the proposed record URI to extract the DID 174 + const proposedUri = changeRequest.proposedRecord 175 + const proposedDid = proposedUri.replace('at://', '').split('/')[0] 176 + return ( 177 + <Link 178 + href={`/project/${encodeURIComponent(proposedDid)}`} 179 + className="inline-flex items-center text-sm text-accent hover:text-accent-hover transition-colors" 180 + > 181 + View Proposed Changes 182 + <ExternalLink className="h-4 w-4 ml-1" /> 183 + </Link> 184 + ) 185 + })()} 181 186 </div> 182 187 </div> 183 188