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.

[Patch] Ignore asset host for relative uri with host

#5160

According to URI rfc this is relative uri with host but without scheme:

//example.com/test

Currently rails handles such uri incorrectly when assets host set. It adds asset host to such urls, and that is incorrect,

This commit (in attach) fixes problem.

Reported by valodzka · July 20th, 2010 @ 03:14 PM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. valodzka
    valodzka
    • Title changed from Ignore asset host for relative uri with host to [Patch] Ignore asset host for relative uri with host
    • Assigned user set to Pratik

    July 21st, 2010 @ 07:08 PM

  2. Andrea Campi
    Andrea Campi
    • Tag changed from absolutepath, asset_host, patch, url to absolutepath, asset_host, patch, rails3, url

    +1 looks good and tests pass

    October 17th, 2010 @ 12:04 AM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:29 PM

  4. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:29 PM

  5. sergey.kojin
    sergey.kojin

    Problem is still here, I'm get it when tried to use jquery from google CDN.
    I'm rewrite patch for rails3 edge.

    February 20th, 2011 @ 10:51 AM

  6. sergey.kojin
    sergey.kojin
    • State changed from stale to open

    Here is patch with tests only, to see that problem is really here. [state:open]

    February 20th, 2011 @ 10:53 AM

  7. sergey.kojin
    sergey.kojin
    • Assigned user changed from Pratik to José Valim

    February 22nd, 2011 @ 04:44 PM

  8. sergey.kojin
  9. José Valim
    José Valim
    • State changed from open to resolved
    • Importance changed from to Low

    April 26th, 2011 @ 08:59 PM