laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
45.35k stars 4.93k forks source link

Anchor Within Same Page Doesn't Work #8670

Open Justin-Lund opened 1 year ago

Justin-Lund commented 1 year ago

When creating an anchor link to a header within the same page, clicking on it will not work (nothing happens when clicking on it). If the link is placed on another page, it will jump to the correct header.

ie within a note named "Test Note" containing a header named "testheader1": Test Note

Environment

Joplin version: 2.11.11 Platform: macOS OS specifics: Ventura 13.3.1

Steps to reproduce

  1. Create a note
  2. Create a header within the note
  3. Copy the markdown link for the note
  4. Paste the link within the same note
  5. Add a header to the markdown link (ie #testheader1)
  6. Attempt to click on the link

Describe what you expected to happen

Jump to the specified header

Logfile

useMessageHandler.ts:17 Got ipc-message: joplin://1591390948374df38240c80d357828e7#testheader1 {resourceId: '1591390948374df38240c80d357828e7'}resourceId: "1591390948374df38240c80d357828e7"[[Prototype]]: Objectconstructor: ƒ Object()assign: ƒ assign()create: ƒ create()defineProperties: ƒ defineProperties()defineProperty: ƒ defineProperty()entries: ƒ entries()freeze: ƒ freeze()fromEntries: ƒ fromEntries()getOwnPropertyDescriptor: ƒ getOwnPropertyDescriptor()getOwnPropertyDescriptors: ƒ getOwnPropertyDescriptors()getOwnPropertyNames: ƒ getOwnPropertyNames()getOwnPropertySymbols: ƒ getOwnPropertySymbols()getPrototypeOf: ƒ getPrototypeOf()hasOwn: ƒ hasOwn()is: ƒ is()isExtensible: ƒ isExtensible()isFrozen: ƒ isFrozen()isSealed: ƒ isSealed()keys: ƒ keys()length: 1name: "Object"preventExtensions: ƒ preventExtensions()prototype: {constructor: ƒ, __defineGetter__: ƒ, __defineSetter__: ƒ, hasOwnProperty: ƒ, __lookupGetter__: ƒ, …}seal: ƒ seal()setPrototypeOf: ƒ setPrototypeOf()values: ƒ values()arguments: (...)caller: (...)[[Prototype]]: ƒ ()[[Scopes]]: Scopes[0]hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()__proto__: (...)get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()
personalizedrefrigerator commented 1 year ago

I can confirm this on Joplin/Linux v2.11 and v2.12.

The following works:

# Header 1

<div style='height: 500px;'></div>

# Header 2

Testing...

# Header 3

## Header 4

Space:
<div style='height: 500px;'></div>

# Another Header

[Link back to header 2](#header-2)

...but the following does not:

# Header 1

<div style='height: 500px;'></div>

# Header 2

Testing...

# Header 3

## Header 4

Space:
<div style='height: 500px;'></div>

# Another Header

[Link back to header 2](:/noteidhere#header-2)

Thank you for reporting this!

github-actions[bot] commented 1 year ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

github-actions[bot] commented 1 year ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, feel free to create a new issue with up-to-date information.

nunesgh commented 6 months ago

I am experiencing the same issue. I have the impression this issue was introduced sometime in the second semester of last year, since I remember this used to work as expected before that.

Joplin 2.14.20 (prod, linux)

Client ID: ac54b3b6e923429ba83f661de082a3e9 Sync Version: 3 Profile Version: 46 Keychain Supported: No

Revision: cfd98e3

Automatic Backlinks to note: 3.0.3 Backup: 1.4.1 BibTeX: 0.5.0 Copy Anchor Link: 1.1.0 Emoji: 1.0.4 Inline tags: 1.3.0 Link Graph UI: 1.5.0 Math Mode: 0.6.2 Note overview: 1.7.1 Note Tabs: 1.4.0 Quick Links: 1.3.2 Table Formatter Plugin: 1.2.1 Tagging: 1.0.3 Templates: 2.4.0

nonobio commented 4 months ago

Hi,

I have the same issue with Joplin 3.0.6.

I thought it was a problem with the Outline plugin that I use to quickly create links, but apparently it is a problem in basic Joplin.

Joplin 3.0.6 (prod, win32)

ID client : 773c93d7dee04e1289cb896f235df6a3 Version de Synchro : 3 Version du profil : 47 Trousseau supporté : Oui

Révision : 18b9f5c

Backup: 1.4.1 Bidirectional Links: 0.1.2 Favorites: 1.3.2 Menu items, Shortcuts, Toolbar icons: 1.1.0 Note list and sidebar toggle buttons: 1.0.3 Note overview: 1.7.1 Note Tabs: 1.4.0 Outline: 1.5.13 Quick Links: 1.3.2 Rich Markdown: 0.15.0 Search & Replace: 2.2.0

Thanks