Problem/Motivation
Steps to reproduce:
Tested on Drupal core 7.38 , Media 7.x-2.0-alpha4 and Redirect 7.x-1.0-rc3 contrib modules.
1. Attach File field with Media browser widget to any entity
2. Create the entity and add an image by Media browser
3. Click on Edit Button for the added Image
4. Click on 'URL Redirects' tab
5. Click on 'Add URL redirect to this file' Link
6. User should be directed to "URL redirects" page.
7. Click on Cancel button.
Expected: User should be directed back to Edit of the Image.
Actual: AJAX error page shows up.
Proposed resolution
On step 5 the link has 'admin/config/search/redirect/add?redirect=file/%fid&destination=media/%fid/edit/ajax'. The addition of 'file/%fid/edit' destination parameter to Edit Button will fix the issue.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | media-ajax_error_page-2569719-6.patch | 515 bytes | a_khalipau |
| #3 | media-ajax_error_page-2569719-2.patch | 711 bytes | a_khalipau |
Comments
Comment #2
a_khalipau commentedComment #3
a_khalipau commentedComment #4
a_khalipau commentedComment #6
a_khalipau commentedComment #7
chris matthews commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team