Sorry, we don't support your browser.  Install a modern browser

Link to page in writer field#268

The possibility for internal links (= link to another page) would be nice for the writer field.

8 months ago
3

I’m thinking about it. Since the writer field does not work like markdown, when we add the link of the page, it will save the absolute link that includes full url as HTML like http://example.com/some/page, not the dynamic link like (link: some/page). Do you think this is a problem?

6 months ago
D

Either way would be an issue, imagine if your page change slug, the link will then be broken. That’s why it’s necessary to have immutable id’s for internal linking.

6 months ago

Since we do not have an immutable id at the moment, also problems may occur in the links we give with the link() tag in markdown. The point I want to draw attention to here is the domain address. When we first make the site on localhost and then move it to the prod domain, links with localhost will not work. Is this an acceptable case?

6 months ago

At the moment this is our workaround: We add a base url and use the page slug of the target page in the link input.

6 months ago

I don’t think the domain should be stored

6 months ago

Do you think the links should be stored like this?

<a href="/some/page">Link to page</a>

<a href="/subfolder-kirby-installation/some/page">Link to page</a>
6 months ago

It would be best if there was a special mark for such an internal link so that the correct link tag can then be constructed in the backend when the field is rendered. However I don’t have a good overview over the writer field at the moment to tell if it’s possible and how this would be done.

6 months ago

I don’t think we can convert the special mark without using an additional tag/method.

6 months ago