-
Notifications
You must be signed in to change notification settings - Fork 19
fix(internet-header): add self admin url prop to override menu links #5941
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
base: release/v9
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 40d73f6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Related Previews |
…ink-for-the-selfadmin-when-the-logouturl-is-not-the-same-domain-as-the-user-profile-2
…ink-for-the-selfadmin-when-the-logouturl-is-not-the-same-domain-as-the-user-profile-2
|
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.
Regarding the self-admin-origin
prop in the docs:
- Group it with other controls in the "Overrides" section.
- Align the property naming (camel case).
- Add a clearer description, so users without internal knowledge can understand how and when to use it.
- Change the control type, so it becomes possible to define a value.

...(this.logoutUrl !== undefined | ||
? { platform: { ...platform, logoutURL: this.logoutUrl } } | ||
: { platform }), | ||
platform, |
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.
platform, | |
{ platform }, |
@@ -182,6 +187,7 @@ export class PostInternetHeader { | |||
try { | |||
state.projectId = this.project; | |||
state.stickyness = this.stickyness; | |||
state.selfAdminOrigin = this.selfAdminOrigin; |
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.
Is it necessary/smart to handle the selfAdminOrigin
different than the logoutUrl
here?
📄 Description
Created a new PR based on #4936 as the internet-header package was removed from v8.
@gfellerph The changes you requested in the previous PR have been adressed on this one.