Skip to content

Commit f1701ec

Browse files
Fix venue type page hyperlinks (#73)
* FIx hyperlinks for venue type pages
1 parent 3548b4e commit f1701ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/utils_render_table_non_registers.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ generate_html_postfix_hrefs_non_reg <- function(filter, table_details){
8686
# Case we do not have subcat
8787
if ("subcat" %in% names(table_details)){
8888
subcat <- table_details[["subcat"]]
89+
# If subcat is venue type, we pluralize the venue names
90+
if (subcat %in% names(CONFIG$VENUE_SUBCAT_PLURAL)){
91+
subcat <- CONFIG$VENUE_SUBCAT_PLURAL[[subcat]]
92+
}
8993
hrefs <- list(
9094
json_href = paste0(CONFIG$HYPERLINKS[["register"]], filter, "/", subcat,"/index.json")
9195
)

0 commit comments

Comments
 (0)