@@ -94,7 +94,8 @@ add_all_venues_hyperlink <- function(table){
94
94
!! col_names [[" Venue" ]] : = paste0(
95
95
" [" , !! sym(col_names [[" Venue" ]]), " ](" ,
96
96
CONFIG $ HYPERLINKS [[" venues" ]],
97
- !! sym(col_names [[" Type" ]]), " /" ,
97
+ # Retrieving the plural venue types
98
+ CONFIG $ VENUE_SUBCAT_PLURAL [[!! sym(col_names [[" Type" ]])]], " /" ,
98
99
venue_slug , " /)"
99
100
),
100
101
@@ -103,15 +104,17 @@ add_all_venues_hyperlink <- function(table){
103
104
!! sym(col_names [[" no_codechecks" ]]),
104
105
" [(see all checks)](" ,
105
106
CONFIG $ HYPERLINKS [[" venues" ]],
106
- !! sym(col_names [[" Type" ]]), " /" ,
107
+ # Retrieving the plural venue types
108
+ CONFIG $ VENUE_SUBCAT_PLURAL [[!! sym(col_names [[" Type" ]])]], " /" ,
107
109
venue_slug , " /)"
108
110
),
109
111
110
112
# Generate venue type hyperlink
111
113
!! col_names [[" Type" ]] : = paste0(
112
114
" [" , stringr :: str_to_title(!! sym(col_names [[" Type" ]])),
113
115
" ](" , CONFIG $ HYPERLINKS [[" venues" ]],
114
- !! sym(col_names [[" Type" ]]), " /)"
116
+ # Retrieving the plural venue types
117
+ CONFIG $ VENUE_SUBCAT_PLURAL [[!! sym(col_names [[" Type" ]])]], " /)"
115
118
)
116
119
)
117
120
@@ -183,6 +186,9 @@ add_venue_type_hyperlink <- function(table, venue_type) {
183
186
184
187
venue_col_name <- paste(stringr :: str_to_title(venue_type ), " name" )
185
188
189
+ # Making the venue type plural for consistency in URL
190
+ venue_type <- CONFIG $ VENUE_SUBCAT_PLURAL [[venue_type ]]
191
+
186
192
# Ensure slug_name exists (if not, generate it from the Venue column)
187
193
if (! " venue_slug" %in% colnames(table )) {
188
194
table <- table %> %
0 commit comments