Jump to content

Recommended Posts

Posted

Hi,
I have an issue with external links, specified in the CKE editor field in admin, using the link button.
When looking at html, it looks clean, like this:

<a href="http://externalwebsite.com"></a>

but on hover and on click, it redirect to my processwire website and then the specified url, like:

<a href="myprocesswirewebsite/mypage/http://externalwebsite.com"></a>

I guess it is a .htaccess issue but I'm not familiar with this kind of file.

Thanks in advance,

Étienne

Posted

I'm thinking that there's some JS in there messing with the links, considering that base tags (if there is one in this case) won't interfere with absolute references. So yeah, please could we see the code?

Posted

You're right, I have a script which replace some characters including colons. To avoid conflict, I rewrited urls by removing "http://". I didn't expect that it will make processwire consider it as an internal url, shame on me.

Thanks a lot!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...