WYSIWYG - Link to Pyro pages not hardcoded URLs

damian_nz - 1 month ago

Hey there,

Just wondering how the community handles this? I want to add some links into some text in a WYSIWYG but I really don't want to hardcode the URLs.

Is there any way to handle this in Pyro currently? or has anyone written a Redactor plugin for it?


piterden - 1 month ago

What you mean to hardcode?

ryanthompson - 1 month ago

This is something I have kinda staged in my mind but not sure if I like my solution.. but I have planned to add "route names" to pages for some time now. That way if they change - the links don't end up missing the page.

We've had some landing / SEO type page requirements that we used redirects for but it's not exactly the same as what you're looking for.

https://github.com/pyrocms/pyrocms/issues/3897 is the issue I made a while ago for this.