Skip to content

[fix]: Custom object setup links redirect to Object Manager root instead of specific object#1193

Open
RubenHalman wants to merge 1 commit into
tprouvot:releaseCandidatefrom
RubenHalman:fix/custom-object-setup-links
Open

[fix]: Custom object setup links redirect to Object Manager root instead of specific object#1193
RubenHalman wants to merge 1 commit into
tprouvot:releaseCandidatefrom
RubenHalman:fix/custom-object-setup-links

Conversation

@RubenHalman

@RubenHalman RubenHalman commented May 3, 2026

Copy link
Copy Markdown
Contributor

Fixes the bug reported in beta where clicking Fields/Details/Record Types for a custom object navigates to the Object Manager root instead of the specific object.

Root cause

The ObjectManager URLs for custom objects used durableId (from the Tooling API EntityDefinition query). If that query hasn't completed yet, durableId is undefined, producing a URL like .../ObjectManager/undefined/FieldsAndRelationships/view, which Salesforce redirects to the Object Manager root. Standard objects already used sobjectName directly and worked fine.

Fix

Use sobjectName (e.g. MyObject__c) consistently in all ObjectManager URLs — it's always available immediately and works for both standard and custom objects.

Affected functions

  • getObjectSetupLink
  • getObjectFieldsSetupLink
  • getRecordTypesLink

…f specific object

Replace durableId with sobjectName in ObjectManager URLs for custom objects.
The durableId (entity ID) is not a valid URL segment for ObjectManager — it
causes Salesforce to fall back to the Object Manager root page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant