Skip to content
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

[3.0.0-alpha007] Creating a new Folder takes user to Redirects tab with the message "This page has not been created yet. You must save and publish the page in order to be able to add redirects to it." #121

Closed
mrhodes-bd opened this issue Jan 21, 2022 · 1 comment
Assignees
Labels
umbraco/v9 Issues and tasks related to Umbraco 9.

Comments

@mrhodes-bd
Copy link

When creating a new Folder in the content tree (i.e. a node that has list-view enabled), the user is shown the Redirects tab with the message "This page has not been created yet. You must save and publish the page in order to be able to add redirects to it." and is unable to name or save the node.

The workaround currently is to move to the Info tab, where it is then possible to give the node a name and Save and publish it.

Ideally, on folder creation, the user would be able to name and save the new node without needing to swap tabs first.

@mrhodes-bd mrhodes-bd changed the title Creating a new Folder takes user to Redirects tab with the message "This page has not been created yet. You must save and publish the page in order to be able to add redirects to it." [3.0.0-alpha007] Creating a new Folder takes user to Redirects tab with the message "This page has not been created yet. You must save and publish the page in order to be able to add redirects to it." Jan 21, 2022
@abjerner abjerner self-assigned this Jan 21, 2022
@abjerner abjerner added the umbraco/v9 Issues and tasks related to Umbraco 9. label Jan 21, 2022
@abjerner
Copy link
Member

Hi @mrhodes-bd

The redirects package has a backoffice helper instance, and one of the things it's handling is the content app:

https://github.com/skybrud/Skybrud.Umbraco.Redirects/blob/v3.0.0-alpha007/src/Skybrud.Umbraco.Redirects/Helpers/RedirectsBackOfficeHelper.cs#L194-L207

For content, source is an instance of IContent, which exposes a ISimpleContentType via the ContentType property. Unfortunately ISimpleContentType is rather limited, so I'm not not able to check whether the content type has any properties or whether it is a list view.

But as I described in the issue below, you can override the default implementation:

#120 (comment)

You can then check against specific content type IDs or aliases, and disable the content app accordingly. You can also look up the full IContentTypeService, also this might have a slight cost in performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
umbraco/v9 Issues and tasks related to Umbraco 9.
Projects
None yet
Development

No branches or pull requests

2 participants