{"action":"created","issue":{"url":"https://api.github.com/repos/Mange/roadie/issues/91","repository_url":"https://api.github.com/repos/Mange/roadie","labels_url":"https://api.github.com/repos/Mange/roadie/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/Mange/roadie/issues/91/comments","events_url":"https://api.github.com/repos/Mange/roadie/issues/91/events","html_url":"https://github.com/Mange/roadie/issues/91","id":40857882,"number":91,"title":"Support URLs with Mandrill *|MERGE VARS|*","user":{"login":"dblandin","id":123595,"avatar_url":"https://avatars.githubusercontent.com/u/123595?v=3","gravatar_id":"","url":"https://api.github.com/users/dblandin","html_url":"https://github.com/dblandin","followers_url":"https://api.github.com/users/dblandin/followers","following_url":"https://api.github.com/users/dblandin/following{/other_user}","gists_url":"https://api.github.com/users/dblandin/gists{/gist_id}","starred_url":"https://api.github.com/users/dblandin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblandin/subscriptions","organizations_url":"https://api.github.com/users/dblandin/orgs","repos_url":"https://api.github.com/users/dblandin/repos","events_url":"https://api.github.com/users/dblandin/events{/privacy}","received_events_url":"https://api.github.com/users/dblandin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mange/roadie/labels/feature","name":"feature","color":"e102d8"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2014-08-21T22:34:19Z","updated_at":"2016-07-12T08:33:39Z","closed_at":"2014-08-25T06:35:06Z","body":"I'm currently getting the following error when roadie tries to process a template with a [Mandrill merge var](http://help.mandrill.com/entries/21678522-How-do-I-use-merge-tags-to-add-dynamic-content-):\r\n\r\n```\r\nRoadie::InvalidUrlPath: Cannot use path \"https://domain.com/path?token=*|token|*\" in URL generation. Caused by: bad URI(is not URI?): https://domain.com/path?token=*|token|*\r\n        from /var/www/app/shared/bundle/ruby/2.1.0/gems/roadie-3.0.0/lib/roadie/url_generator.rb:114:in `rescue in parse_path'\r\n        from /var/www/app/shared/bundle/ruby/2.1.0/gems/roadie-3.0.0/lib/roadie/url_generator.rb:112:in `parse_path'\r\n        from /var/www/app/shared/bundle/ruby/2.1.0/gems/roadie-3.0.0/lib/roadie/url_generator.rb:108:in `path_is_absolute?'\r\n        from /var/www/app/shared/bundle/ruby/2.1.0/gems/roadie-3.0.0/lib/roadie/url_generator.rb:58:in `generate_url'\r\n        from /var/www/app/shared/bundle/ruby/2.1.0/gems/roadie-3.0.0/lib/roadie/url_rewriter.rb:47:in `generate_url'\r\n        from /var/www/app/shared/bundle/ruby/2.1.0/gems/roadie-3.0.0/lib/roadie/url_rewriter.rb:71:in `transform_element'\r\n        from /var/www/app/shared/bundle/ruby/2.1.0/gems/roadie-3.0.0/lib/roadie/url_rewriter.rb:25:in `block in transform_dom'\r\n```\r\n\r\nURI, which roadie's URLGenerator is using, doesn't seem to like this type of URL:\r\n```ruby\r\n>> URI(\"https://domain.com/path?token=*|token|*\")\r\n=> URI::InvalidURIError: bad URI(is not URI?): https://domain.com/path?token=*|token|*\r\n```\r\n\r\nAny thoughts on how to resolve this issue? It's preventing us from upgrading to 3.0."},"comment":{"url":"https://api.github.com/repos/Mange/roadie/issues/comments/231973691","html_url":"https://github.com/Mange/roadie/issues/91#issuecomment-231973691","issue_url":"https://api.github.com/repos/Mange/roadie/issues/91","id":231973691,"user":{"login":"Mange","id":1599,"avatar_url":"https://avatars.githubusercontent.com/u/1599?v=3","gravatar_id":"","url":"https://api.github.com/users/Mange","html_url":"https://github.com/Mange","followers_url":"https://api.github.com/users/Mange/followers","following_url":"https://api.github.com/users/Mange/following{/other_user}","gists_url":"https://api.github.com/users/Mange/gists{/gist_id}","starred_url":"https://api.github.com/users/Mange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mange/subscriptions","organizations_url":"https://api.github.com/users/Mange/orgs","repos_url":"https://api.github.com/users/Mange/repos","events_url":"https://api.github.com/users/Mange/events{/privacy}","received_events_url":"https://api.github.com/users/Mange/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T08:33:38Z","updated_at":"2016-07-12T08:33:38Z","body":"The initializer takes the same options as the roadie_options in the\nmailers. It's up to you where you want to configure it.\n\nDen mån 11 juli 2016 22:27Greg Jastrab <notifications@github.com> skrev:\n\n> If we wanted to do something like this is there a way to configure it via\n> an initializer or is overriding roadie_options in the mailer the only\n> way? (need to do something similar for sendgrid's unsubscribe tag)\n>\n> —\n> You are receiving this because you modified the open/close state.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/Mange/roadie/issues/91#issuecomment-231854253>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe/AAAGP9hswsRqAhHkriT9e2LYZxxgFE_Nks5qUqc9gaJpZM4CZ6bK>\n> .\n>\n"}}
{"actor":{"display_login":"Mange"}}