@@ -35,7 +35,7 @@ def versions_url base_url, pacticipant
35
35
end
36
36
37
37
def version_url base_url , version
38
- "#{ pacticipant_url ( base_url , version . pacticipant ) } /versions/#{ version . number } "
38
+ "#{ pacticipant_url ( base_url , version . pacticipant ) } /versions/#{ url_encode ( version . number ) } "
39
39
end
40
40
41
41
def version_url_from_params params , base_url = ''
@@ -157,7 +157,7 @@ def verification_url_from_params params, base_url = ''
157
157
end
158
158
159
159
def latest_verifications_for_consumer_version_url version , base_url
160
- "#{ base_url } /verification-results/consumer/#{ url_encode ( version . pacticipant . name ) } /version/#{ version . number } /latest"
160
+ "#{ base_url } /verification-results/consumer/#{ url_encode ( version . pacticipant . name ) } /version/#{ url_encode ( version . number ) } /latest"
161
161
end
162
162
163
163
def latest_verification_for_pact_url pact , base_url , permalink = true
@@ -198,7 +198,7 @@ def templated_label_url_for_pacticipant pacticipant_name, base_url = ""
198
198
end
199
199
200
200
def label_url label , base_url
201
- "#{ labels_url ( label . pacticipant , base_url ) } /#{ label . name } "
201
+ "#{ labels_url ( label . pacticipant , base_url ) } /#{ url_encoded ( label . name ) } "
202
202
end
203
203
204
204
def labels_url pacticipant , base_url
@@ -281,7 +281,7 @@ def matrix_url_from_params params, base_url = ''
281
281
end
282
282
283
283
def group_url ( pacticipant_name , base_url = '' )
284
- "#{ base_url } /groups/#{ pacticipant_name } "
284
+ "#{ base_url } /groups/#{ url_encoded ( pacticipant_name ) } "
285
285
end
286
286
287
287
def hal_browser_url target_url , base_url = ''
0 commit comments