@dlebedef Not possible. When you run Mix, inertia-link is compiled to something entirely different in JavaScript.
Inertia Link server side
Is it possible to generate "inertia-links" on the server side?
I'm working on a CMS and I would like the links inside the content (created by the user with a text field) of a page to act as inertia-links, hence load the page content without reloading the page.
Example:
<template>
<div v-html="content"></div>
</template>
<script>
export default {
data() : {
content: '<p>This is a paragraph...</p><inertia-link :href="/link-to-other-page">Link to other page</inertia-link>'
}
}
</script>
Wanted behaviour: if someone clicks on the link "Link to other page" we load the page dynamically.
Is there an existing or correct way to pass an html content to a vue template containing a link and making it so that when the html content is rendered and someone clicks on the link the page content is loaded dynamically without reloading the page?
Hope I made myself clear...
Please or to participate in this conversation.