Skip to content

data-page-name not being respected when clicking on link in Markdown text #345

@PeteDaGuru

Description

@PeteDaGuru

From Brian Marick's pages at
https://metaprog.wiki.oddly-influenced.dev/view/welcome-visitors/view/recent-changes/view/coding-isnt-conversational
is a Mardown block with:

[[Conceptual Metaphor]]<a class="internal" href="/link-types.html" data-page-name="link-types" title="view">𓂙</a>

Should display the UTF-8 glyph but actually hit 'link-types' as the page when clicked. If you do right-click and "open in new tab" it works correctly - brings up existing link-types page.

Guessing on 2025-07-20 that something wasn't ported to Javascript client, or maybe it never worked correctly with newer Markdown library.
Likely need to process the link specially. Checking in wiki client at line 40 and line 27 :

wiki-client/lib/link.js

Lines 27 to 40 in 642dcf6

</div>\
`)
if (site) {
$page.data('site', site)
}
return $page
}
const showPage = (name, loc, title = null) =>
createPage(name, loc, title)
.appendTo('.main')
.each((_i, e) => refresh.cycle($(e)))
const doInternalLink = function (title, $page, site = null) {

Probably not in the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions