Client routing for internal `content` links

Frontity Roadmap :biking_man:

Feature Card

Description

Right now an internal link found in content.rendered triggers a new SSR. It should be captured in Frontity and switched to a client route.

User Stories

As a Frontity developer
I want to use Frontity’s router for all the internal links found in content.rendered
so that when readers click, the route change is done in the client

Possible solution

We have to add a processor for this.

Also, as noted by @mmczaplinski, we should check for absolute links and change them to relative links.

For example, in a site www.mydomain.com with a WordPress URL wp.mydomain.com we need to do this change:

<a href="https://wp.mydomain.com/some-post">

<a href="/some-post">