ÉtienneOz Posted December 12, 2014 Share Posted December 12, 2014 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 Link to comment Share on other sites More sharing options...
ÉtienneOz Posted December 15, 2014 Author Share Posted December 15, 2014 Up! Nobody has an idea? At least a clue... Link to comment Share on other sites More sharing options...
apeisa Posted December 15, 2014 Share Posted December 15, 2014 Very strange. Is that link online somewhere? Link to comment Share on other sites More sharing options...
Mike Rockett Posted December 16, 2014 Share Posted December 16, 2014 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? Link to comment Share on other sites More sharing options...
ÉtienneOz Posted December 16, 2014 Author Share Posted December 16, 2014 Hi, thanks for the answer. @apeisa, @Mike Anthony, yes you can see it at http://interstices.io/heritage/livres-textes/ (click on the first article, there is a red link on first line after the title). @Mike Anthony, do you need any further code than what is available online? Link to comment Share on other sites More sharing options...
Jan Romero Posted December 16, 2014 Share Posted December 16, 2014 If you compare the link on your site with the example you posted in the OP, you will see the problem. It’s missing the scheme part http://. If you add that it should work. Link to comment Share on other sites More sharing options...
ÉtienneOz Posted December 16, 2014 Author Share Posted December 16, 2014 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! Link to comment Share on other sites More sharing options...
Jan Romero Posted December 16, 2014 Share Posted December 16, 2014 It’s not Processwire that does that, though. It’s your browser. Any link without the scheme will be treated as local. Check this one: strabic.fr/Adobe-le-creatif-au-pouvoir 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now