This module enables direct viewing of files associated with media entities using their URL aliases, rather than going through the full media entity display. This is particularly useful for linked files like PDFs, ensuring updates to the media object's file are automatically reflected wherever it is referenced.
This module allows for direct viewing of a file with the URL alias. Instead of viewing the media entity and all the fields users can view a file (like a PDF). Instead of sites/default/files/name-of-file it will display the URL alias.
This is useful if a media object is referenced in multiple locations the media object can be updated with a new file and reflected in all instances automatically.
Recommended modules
- Pathauto (https://www.drupal.org/project/pathauto)
- Drupal Core Workflow
Installation
Install as you would normally install a contributed Drupal module. Visit:
https://www.drupal.org/docs/extending-drupal/installing-drupal-modules
for further information.
Configuration
Once the module is installed.
- Go to /admin/config/media/media-settings and verify "Standalone media URL" is checked.
- Go to /admin/config/media/media_alias_display to configure what media bundles will use this module.
Tricks
- If you're viewing a file with an alias and need help finding the media object just append ?edit-media. This will redirect you straight to the media edit page.
Ask your assistant about Media Alias Display
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- media_library Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 3.0.1 | Stable | 11 | Sep 28, 2026 | ||
| 3.0.0 | Stable | 11 | Jun 12, 2026 | ||
| 3.0.x-dev | Dev | 11 | Jun 12, 2026 | ||
| 2.1.1 | Stable | 10–11 | Apr 30, 2025 | ||
| 2.1.0 | Stable | 10–11 | Nov 13, 2024 | ||
| 2.1.0-beta2 | Pre-release | 10–11 | Jun 17, 2024 | ||
| 2.1.0-beta1 | Pre-release | 10–11 | May 28, 2024 | ||
| 2.1.x-dev | Dev | 10–11 | May 28, 2024 | ||
| 2.0.1 | Stable | 10 | Dec 1, 2023 | ||
| 2.0.0 | Stable | 10 | Oct 27, 2023 |