The setting 'Use the administration theme when editing or creating content ' at /admin/appearance is activated.

When I visit /node/42/edit the node edit form is displayed with the administration theme.

When I visit /node/42/Edit the node edit form is displayed with the default theme.

Happens also if you use eDiT or some other combinations. Is also the case for /revisions, /translate etc.

Expected behaviour when visiting /node/42/Edit:

  • displaying the edit form in administration theme, or
  • 301 to /node/42/edit, or
  • rendering of the content, not the edit form (as is the case with /node/42/foobar etc.), or
  • 404
CommentFileSizeAuthor
#4 admintheme.patch366 bytessteveo1490
#1 nodeEditFix.zip33.53 KBsteveo1490

Comments

steveo1490’s picture

StatusFileSize
new33.53 KB

Here is a hot fix. This will make it so 'Edit' or 'EDIT' will also maintain an administrative theme. Just extract and put into your drupal 7.XX\modules\node

steveo1490’s picture

Assigned: Unassigned » steveo1490
droplet’s picture

Version: 7.12 » 8.x-dev
Component: other » node.module
Priority: Minor » Normal
steveo1490’s picture

Version: 8.x-dev » 7.12
Status: Active » Needs review
StatusFileSize
new366 bytes

Here is a patch that works on 7.12. This will make it so any value is accepted for edit, add, revision, delete.

mgifford’s picture

Component: node.module » ajax system
Assigned: steveo1490 » Unassigned
Issue summary: View changes
Status: Needs review » Needs work

I assume this is no longer a problem in D8 but not certain.

Patch no longer applies in D7 though.

Version: 7.12 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.