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.

3 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?

8 days ago
C

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.

8 days 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?

8 days 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.

8 days ago

I don’t think the domain should be stored

8 days 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>
8 days 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.

5 days ago

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

5 days ago