-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to omit basePath in buttons #6041
Conversation
@@ -62,7 +62,9 @@ const getResourceLinkPath = ({ | |||
); | |||
} | |||
const sourceId = get(record, source); | |||
const rootPath = basePath.replace(resource, reference); | |||
const rootPath = basePath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a change I wanted to push in the previous PR, but @djhi was too fast to merge it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was RFR! 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a lint error
In the general case, we can infer the basePath from the resource, which is in the context.