Make all links relative

Now the abs_to_rel module is enabled, links can be made relative so they
work on the current environment.
This commit is contained in:
Oliver Davies 2025-05-29 16:42:25 +01:00
parent 0d359f81d6
commit 7a7dc297ca
349 changed files with 698 additions and 698 deletions

View file

@ -82,9 +82,9 @@
],
"body": [
{
"value": "\n <p>After starting with jQuery in Drupal 6 and moving to full JavaScript frameworks like Vue, I've recently been using Stimulus when adding JavaScript to my projects.<\/p>\n\n<p>After finding it via SymfonyCasts and Symfony UX (I can't remember if Ryan and I discussed it <a href=\"https:\/\/www.oliverdavies.uk\/podcast\/10-ryan-weaver-symfonycasts\">in our podcast episode<\/a>), I like that it works on top of my existing HTML and Twig templates instead of having to rewrite or duplicate all the markup.<\/p>\n\n<p>You enable and configure it with data attributes like <code>data-controller<\/code> and <code>data-action<\/code> in your HTML which refer to separate JavaScript classes and methods, so you have some structure and organisation compared to putting all the logic in Twig.<\/p>\n\n<p>Having separate controllers also makes it easy to reuse logic in other parts of your application or extract it for use in other projects.<\/p>\n\n<p>If you want an example of how I've set up stimulus with esbuild, <a href=\"https:\/\/github.com\/opdavies\/stimulus-esbuild-example\">take a look at this GitHub repository<\/a>, or <a href=\"https:\/\/symfonycasts.com\/screencast\/stimulus\">watch the Stimulus course on SymfonyCasts<\/a>.<\/p>\n\n<p>I skipped the lessons on Stimulus before and didn't try it for a while, but I'm glad I have.<\/p>\n\n ",
"value": "\n <p>After starting with jQuery in Drupal 6 and moving to full JavaScript frameworks like Vue, I've recently been using Stimulus when adding JavaScript to my projects.<\/p>\n\n<p>After finding it via SymfonyCasts and Symfony UX (I can't remember if Ryan and I discussed it <a href=\"/podcast\/10-ryan-weaver-symfonycasts\">in our podcast episode<\/a>), I like that it works on top of my existing HTML and Twig templates instead of having to rewrite or duplicate all the markup.<\/p>\n\n<p>You enable and configure it with data attributes like <code>data-controller<\/code> and <code>data-action<\/code> in your HTML which refer to separate JavaScript classes and methods, so you have some structure and organisation compared to putting all the logic in Twig.<\/p>\n\n<p>Having separate controllers also makes it easy to reuse logic in other parts of your application or extract it for use in other projects.<\/p>\n\n<p>If you want an example of how I've set up stimulus with esbuild, <a href=\"https:\/\/github.com\/opdavies\/stimulus-esbuild-example\">take a look at this GitHub repository<\/a>, or <a href=\"https:\/\/symfonycasts.com\/screencast\/stimulus\">watch the Stimulus course on SymfonyCasts<\/a>.<\/p>\n\n<p>I skipped the lessons on Stimulus before and didn't try it for a while, but I'm glad I have.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>After starting with jQuery in Drupal 6 and moving to full JavaScript frameworks like Vue, I've recently been using Stimulus when adding JavaScript to my projects.<\/p>\n\n<p>After finding it via SymfonyCasts and Symfony UX (I can't remember if Ryan and I discussed it <a href=\"https:\/\/www.oliverdavies.uk\/podcast\/10-ryan-weaver-symfonycasts\">in our podcast episode<\/a>), I like that it works on top of my existing HTML and Twig templates instead of having to rewrite or duplicate all the markup.<\/p>\n\n<p>You enable and configure it with data attributes like <code>data-controller<\/code> and <code>data-action<\/code> in your HTML which refer to separate JavaScript classes and methods, so you have some structure and organisation compared to putting all the logic in Twig.<\/p>\n\n<p>Having separate controllers also makes it easy to reuse logic in other parts of your application or extract it for use in other projects.<\/p>\n\n<p>If you want an example of how I've set up stimulus with esbuild, <a href=\"https:\/\/github.com\/opdavies\/stimulus-esbuild-example\">take a look at this GitHub repository<\/a>, or <a href=\"https:\/\/symfonycasts.com\/screencast\/stimulus\">watch the Stimulus course on SymfonyCasts<\/a>.<\/p>\n\n<p>I skipped the lessons on Stimulus before and didn't try it for a while, but I'm glad I have.<\/p>\n\n ",
"processed": "\n <p>After starting with jQuery in Drupal 6 and moving to full JavaScript frameworks like Vue, I've recently been using Stimulus when adding JavaScript to my projects.<\/p>\n\n<p>After finding it via SymfonyCasts and Symfony UX (I can't remember if Ryan and I discussed it <a href=\"/podcast\/10-ryan-weaver-symfonycasts\">in our podcast episode<\/a>), I like that it works on top of my existing HTML and Twig templates instead of having to rewrite or duplicate all the markup.<\/p>\n\n<p>You enable and configure it with data attributes like <code>data-controller<\/code> and <code>data-action<\/code> in your HTML which refer to separate JavaScript classes and methods, so you have some structure and organisation compared to putting all the logic in Twig.<\/p>\n\n<p>Having separate controllers also makes it easy to reuse logic in other parts of your application or extract it for use in other projects.<\/p>\n\n<p>If you want an example of how I've set up stimulus with esbuild, <a href=\"https:\/\/github.com\/opdavies\/stimulus-esbuild-example\">take a look at this GitHub repository<\/a>, or <a href=\"https:\/\/symfonycasts.com\/screencast\/stimulus\">watch the Stimulus course on SymfonyCasts<\/a>.<\/p>\n\n<p>I skipped the lessons on Stimulus before and didn't try it for a while, but I'm glad I have.<\/p>\n\n ",
"summary": null
}
],