Skip to content

Padrino::Routing absolut_url ignored the default values on url map #2113

Description

@fidalgo

Do you want to request a feature or report a bug?

bug

What is the current behavior?

App.absolute_url() doesn't apply subsitution on the provided values in arguments and only uses the default values.
You can find an example in https://github.com/fidalgo/padrino-absolute-url
This line should print:
Path is http://localhost/face/a2a/CA123/agent/008/answered

Also if you add the line:
assert_equal "/pt", @app.url(:index, lang: 'pt')
to https://github.com/padrino/padrino-framework/blob/master/padrino-core/test/test_routing.rb#L1245

I would expect the test to pass

What is the expected behavior?

See previous description

Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?

ruby '2.3.3'
'padrino', '0.13.3.3'
sinatra (1.4.7)
Fedora Linux 25

and I suspect it was working on padrino 0.10.6 (yeah a long long time ago)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions