In my setup, there is a CMS as a backend that manages content and an ionic app as a front end. Normally, I would implement the navigation via routerLink
values and for most cases like menus or special linking components that will work, no matter how the actual routing information looks like. But what should I do, when the linking element is part of the content?
Let’s say, I have a text block and somewhere in the middle of the text, I have a link. I manage the text block in the CMS which usually only uses plain text, simplified html or normal html. With this, I would normally manage the link here by adding it as a link with an a
tag and a href
value.
The front end can read load this text block and even consider it to be html. But then, I don’t have a smooth router navgiation but a new page load.
Is there a standard way of “translating” inline links to router navigation?
I know that the situation is a bit weird here, because typically, routes should be part of the front end and the backend shouldn’t care about them, but if I manage the content via the backend, I will have this mix, where I have inline links that will be entered within the backend.