not working properly

Game Note Date
Exploding Kittens
  • 12/03/24
  • 11/12/24
Flick Fleet
  • 11/11/24
Kingdomino
  • 10/25/24
  • 10/22/24
Love Letter
  • 10/22/24
  • 10/21/24
Taco vs Burrito
  • 10/22/24
Zombie Teenz
  • 10/21/24
  • 10/19/24
  • 10/17/24
  • 10/16/24
  • 10/14/24

Only the note with no spaces in the name links correctly on the site. Links fine in Obsidian. Is that a bug or my mistake?

The heart of the dataview code is:
table rows.file.link as Note, rows.Date as Date

Full:

table rows.file.link as Note, rows.Date as Date
from "gamelog"
where Game != "Arcs" and Game != "13th Age" and Game != "Masks" and Game != empty
sort Date desc
group by Game

work around

Game Note Date
Exploding Kittens
  • 12/03/24
  • 11/12/24
Flick Fleet
  • 11/11/24
Kingdomino
  • 10/25/24
  • 10/22/24
Love Letter
  • 10/22/24
  • 10/21/24
Taco vs Burrito
  • 10/22/24
Zombie Teenz
  • 10/21/24
  • 10/19/24
  • 10/17/24
  • 10/16/24
  • 10/14/24

This workaround works like I would expect the broken code above would. The heart of the dataview code is:
table "<ul>" + join( map( rows.file, (f) => "<li><a class='internal-link' href='https://superclark.net/" + lower(replace(replace(f.path, " ", "-"), ".md", "")) + "'>" + f.name + "</a>" ), "</li>") + "</ul>" as Note, rows.Date as Date

Improved from:
table join( map( rows.file, (f) => "• [" + f.name + "](https://superclark.net/" + lower(replace(replace(f.path, " ", "-"), ".md", "")) + ")" ), "<br>" ) as Note, rows.Date as Date

a broken workaround attempt

The dataview code:
table join( map( rows.file, (f) => "• [[" + lower(replace(replace(f.name, " ", "-"), ".md", "")) + "]]" ), "<br>" ) as Note, rows.Date as Date

Game Note Date
Exploding Kittens more-car-cards
car-cards
  • 12/03/24
  • 11/12/24
Flick Fleet he-doesnt-need-a-handicap
  • 11/11/24
Kingdomino last-draw
forest-for-the-win
  • 10/25/24
  • 10/22/24
Love Letter sevens-and-eights
streak
  • 10/22/24
  • 10/21/24
Taco vs Burrito taco-v-burrito-v-taco
  • 10/22/24
Zombie Teenz the-boss
third-times-the-charm
victory-with-guarded-crates
jet-pack
double-tap
  • 10/21/24
  • 10/19/24
  • 10/17/24
  • 10/16/24
  • 10/14/24

This replicates the original problem, with the less-than-ideal formatting of the unimproved workaround.

CC BY 4.0 2024 super clark. Powered by Digital Garden. Part of the superclark.net family. Yo, its RSS!