Skip to content

Commit

Permalink
fix(matrix page): set correct base URL for links when a path is speci…
Browse files Browse the repository at this point in the history
…fied in the base URL
  • Loading branch information
bethesque committed Feb 20, 2022
1 parent 5414786 commit 8305456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/ui/controllers/matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Matrix < Base
errors = matrix_service.validate_selectors(selectors, options)
if errors.empty?
lines = matrix_service.find(selectors, options)
locals[:lines] = PactBroker::UI::ViewDomain::MatrixLines.new(lines)
locals[:lines] = PactBroker::UI::ViewDomain::MatrixLines.new(lines, base_url: base_url)
locals[:badge_url] = matrix_badge_url(selectors, lines, base_url)
else
locals[:errors] = errors
Expand Down

0 comments on commit 8305456

Please sign in to comment.