Headers which are normal links (or wikilinks with display text) create ugly links

Steps to reproduce

Note: I originally thought this was only an issue of the outline, but even links created via the suggestion popup after typing [[# for example do the very same. The problem is broader and there may be existing topics about this.

## [Google](https://www.google.com/)

Drag the heading “Google” from the outline into the source/live preview mode.

Did you follow the troubleshooting guide? Y

Expected result

## [Google](https://www.google.com/)
[[#[Google](https //www.google.com/)|Google]]

I’d expect the link to look clean, i.e. have display text equal to the heading excluding its link.


I’d also expect if a header has the command Rename this heading used on it, in addition to renaming links to this header in the vault, also rename the display texts (unless they’re not exactly identical to their heading, e.g. only also rename display text “Google” if is it’s “Google”, not “Google is a search engine”).

Actual result

## [Google](https://www.google.com/)
[[#[Google](https //www.google.com/)]]


Other examples

A wikilinked header with display text

## [[Some note|The best note]]

When linking to the header results in:

[[#Some note The best note]]


When it should probably be:

[[#Some note|The best note]]



	Obsidian version: v1.5.3
	Installer version: v1.5.3
	Operating system: Windows 10 Pro 10.0.22631
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on


Additional information


I have mixed feelings about this. A heading can be made of a lot of things, not just the link. We should interpret it and extract an alias.

I think you should open a Feature Request for this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.