Skip to content

force_ssl seems to drop optional path segments when redirecting to https #7528

Closed
@brandonweiss

Description

@brandonweiss

I have a route:

constraints subdomain: "images" do
  match "/:id(/:geometry)" => "images#show"
end

And a controller:

class ImagesController < ActionController::Base

  force_ssl if Rails.env.production?

  def show
    # ...
  end

end

If I go to: http://images.domain.dev/42/300x400?some=params
I get redirected to: https://images.domain.dev/42?some=params

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions