Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Asset Timestamping w/ relative_url_root

#1265

When I installed the v2.2.0 gems I no longer see asset timestamps on my javascripts or stylesheets.

I have the following line in my environment.rb file: config.action_controller.relative_url_root= '/qs'

I've attached a screenshot of the source generated for the page assets.

If I deploy to the root without a relative_url_root, the timestamps work as expected.

Reported by Joe Goldwasser · October 24th, 2008 @ 05:04 PM

State: committed
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. Joe Goldwasser
    Joe Goldwasser
    • Tag changed from 2.2, actionpack to 2.2, actionpack, patch

    The problem appeared to be caused because the method prepend_relative_url_root was being called before rewrite_asset_path which failed because the rewrite_asset_path was then looking for a file that did not exist.

    Adding patch with fix and test.

    October 25th, 2008 @ 05:46 AM

  2. Joe Goldwasser
    Joe Goldwasser
    • Tag changed from 2.2, actionpack, patch to 2.2, actionpack, assets, patch, timestamp
    • Assigned user set to josh

    October 25th, 2008 @ 06:52 PM

  3. Repository
    Repository

    (from [2c7abe1b5682d287b19dde5900087908c976109c]) Fixed bug with asset timestamping when using relative_url_root (Joe Goldwasser) [#1265 Asset Timestamping w/ relative_url_root status:committed] http://github.com/rails/rails/co...

    October 26th, 2008 @ 03:50 PM

  4. DHH
    DHH
    • State changed from new to committed

    October 27th, 2008 @ 04:25 PM