Loading
fix: #3634863 Ignore ai_media=1 on the media add page when the AI tabs are turned off
Issue: https://www.drupal.org/project/ai_media/issues/3634863
In inside mode the media add page now opens Generate mode only when the type's AI tab is offered, the same rule as the switch and the Media Library form. With "Offer the AI tabs in the Media Library" off, ?ai_media=1 is ignored, and the Generate media with AI action and page are denied with a reason in the log.
Before: with the AI tabs off, ?ai_media=1 still opens the generator.
After: the media add page shows the upload form.
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release
Edited by Rajab Natshah

