Jump to content

Recommended Posts

Posted

Go to Modules > Configure > ProcessPageEditLink, you'll see the option to use absolute links. But, it is the default option. Hmm, weird.

image.png.186666120bf1059d2ebbdb01e3ab6dbb.png

  • Like 2
Posted

I have puzzled over this too, but I think the confusion comes from a non-standard use of the word "absolute" in relation to the URL.

So ProcessPageEditLink never inserts an absolute URL in that it never includes the protocol or domain. But I think the absolute option means absolute relative to the site root. So the link URL starts with '/' as opposed to the two relative options which can give a link URL like '../some-page/'.

The current behaviour is a good thing, because otherwise all links would break when the root domain changes (e.g. going from dev to live environment). But it would help if the meaning of the absolute option was clarified.

  • Like 5
Posted

Thanks guys.

I've looked into ProcessPageEditLink before as well but as Robin S says I think it's absolute to the root, not including domain URL.

I also agree that generally it's better practice to keep it this way but in my specific case my the backend, which is setup as an API, is on a different URL than the front end.

Have not tested it yet, but for anyone else looking into this issue, there's another thread covering it with possible solution: 

 

  • Like 1
  • 1 year later...
Posted

This helped me out, thanks.
Reviving the topic because I wanted ask if anyone found a decent way to include protocol and domain by default, to all internal links added with CK Editor.
Thanks!

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...