Ticket #6 (closed enhancement: fixed)
Create rebasing task for media slots
| Reported by: | boutell | Owned by: | boutell |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | apostrophePlugin: Media | Version: | Symfony 1.4 |
| Keywords: | tasks | Cc: | agilbert |
| Symfony version: |
Description
Right now, when you move a site from a dev box where frontend_dev.php is in use to a production site where there is no frontend controller in the URL, media slots are left with URLs that still contain a frontend controller that won't work (although the hostname is gracefully removed when the media site and the main site are the same).
However the slot also has the media item IDs, so it's possible to create a rebasing task that gracefully rewrites these by querying the media plugin for information about the items again.
Implement that so folks who don't follow our in-house "index.php all the time, with a different env argument depending on the box" policy can still conveniently deploy sites built with the media plugin.
This will also be handy for cleaning up URLs if we forget to turn on no_script_name for a site, etc.

