WYSIWYG - Link to Pyro pages not hardcoded URLs
Created 6 years ago by damian_nz

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?

Cheers

ryanthompson  —  6 years ago Best Answer

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.

piterden  —  6 years ago

What you mean to hardcode?

ryanthompson  —  6 years ago Best Answer

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.