Links not including the "http://www."

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Links not including the "http://www."

Post by meritweb »

Garvin,

We were using the WYSIWYG editor - but using the source code view to do most of the article. We just used the WYSIWYG view to make sure all was right.

So we were inserting the full links into the HTML code of the article typing out the full <a href=""></a>.

I believe it was doing the same thing when we clicked Insert Link. I can check right now.
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Links not including the "http://www."

Post by meritweb »

No matter how we do it in the WYSIWYG editor, it strips the link of the root domain. If we Insert Link via the button or enter it directly into the HTML source.

If we turn off the WYSIWYG editor - then everything seems to work!
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Links not including the "http://www."

Post by Timbalu »

This is not unusual. It looks like you are on S9y 1.7.2. The build-in WYSIWYG-Editor prior to Serendipity 2.0 was the old, "unsecure" and outdated Xinha WYSIWYG-Editor. This has limitations, but can for sure get configured to not do this URL rewriting. If you still want to use it, you will have to find out yourself.

For Folks already using the Serendipity 1.7 Series, I wrote the new CKEDITOR WYSIWYG-Editor Plugin "serendipity_event_ckeditor" nearly two years ago, which just replaces the old Xinha instance and is a huge step in online web editoring. So actually you are a little late!
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Links not including the "http://www."

Post by garvinhicking »

To phrase it a bit more gently: This got improved a lot by using a different WYSIWYG editor, either by using the plugin on the 1.7.x or by upgrading to Serendipity 2.0 (what I would recommend).

As for continuing to use Xinha, you would need to set the variable http://xinha.raimundmeyer.de/JSdoc/Xinh ... ipBaseHref to false; this can be done in the directory htmlarea/my_custom.js file, if you make it look like this:

Code: Select all

function s9y_xinha(xinha_editor) {
    xinha_editor.config.stripBaseHref = false;
}
I do not have an old 1.7 running right now, so I could not check this. You could try it, but the ideal way would really be to use the new WYSIWYG editor or even better upgrade to serendipity 2.0...

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Links not including the "http://www."

Post by meritweb »

Thanks everyone. I spoke with Don yesterday and he recommended the upgrade as well. I will go ahead and upgrade and take advantage of all the new features / benefits! I appreciate all your help - as always.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Links not including the "http://www."

Post by garvinhicking »

meritweb wrote:Thanks everyone. I spoke with Don yesterday and he recommended the upgrade as well. I will go ahead and upgrade and take advantage of all the new features / benefits! I appreciate all your help - as always.
Sorry for letting this thread get a bit messy and not understanding the actual scenario, and for me not recognizing you were using a different WYSWYIG editor / s9y version. I'm happy we at least sorted it out in the end :-)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DabblingInWebDesign
Regular
Posts: 10
Joined: Mon Feb 01, 2016 9:39 am

Re: Links not including the "http://www."

Post by DabblingInWebDesign »

garvinhicking wrote:Hi!

First off: It's actually a good thing that those links are stripped. It's always better to have relative URLs in your entries, simply because if you ever change the host, the entry links will work properly.

Now for the reason - I believe if you use the WYSIWYG editor, it does this relpacement. Also, the xhtmlcleanup event plugin provides such a "cleanup" option if I remember correctly...
Hi Garvin,

Sorry for bringing this off topic, but since you brought up hosting and I have a question about that, I figured I would respond here. Perhaps I should start a new thread though? Meh.

Anyway, my question is whether Serendipity has it's own hosting? Other website builders or CMS's that I have used in the past have all been already hosted, like WordPress and Blogger for example. Once I have finished creating the site I want with Serendipity, do I then have to look for an external host? If so, does it have to be a company that specifically says they host Serendipity, or can it be a good 1 dollar web hosting package, something like this for example? Sorry, I'm a bit of a newbie with the web hosting thing since I haven't had to deal with it before with the other website builders I was using. Appreciate some guidance.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Links not including the "http://www."

Post by yellowled »

DabblingInWebDesign wrote:Anyway, my question is whether Serendipity has it's own hosting?
It used to, but my guess is it wasn't feasible financially or Jannis (who used to provide it) just didn't have the time to take care of support any longer? (See the “supersized.org” subforum? That's where it was at.)

As for hosting, yes, if you develop locally (xampp or whatever), you'll need a hosting provider. Basically, any old web hosting provider will do as long as their servers meet s9y's requirements. There's no harm in choosing a hosting provider that offers “1-click installations”, but we usually recommend installing s9y from scratch anyway since these pre-packaged installations often don't offer a current version, and you're going to have to update them manually at some point anyway.

I can not really recommend any hosting providers outside of Germany from my experience. The only US web hoster (for example) that I even know of is Media Temple. However, 1&1 is a German company and I would strongly advise to stay the hell away from them as far as possible. (Very poorly configured and performing servers, not only for s9y.)

We have a small list of hosting recommendations in our new docs (I'm not sure the same section from the old docs would be very helpful), though.

YL
DabblingInWebDesign
Regular
Posts: 10
Joined: Mon Feb 01, 2016 9:39 am

Re: Links not including the "http://www."

Post by DabblingInWebDesign »

Hi Yellowled,

Thanks for the response and info.

As for the hosting company.....hmmmm, really? I actually got the recommendation from another "forum friend" who said he had a good experience. Different forum though and not working with Serendipity. Not sure if that is maybe why.

But anyway, good to know that I need to look for an external hosting company for serendipity sites. Will keep that in mind as I get closer to finishing this project.

Cheers!
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Links not including the "http://www."

Post by yellowled »

DabblingInWebDesign wrote:Different forum though and not working with Serendipity. Not sure if that is maybe why.
I'm not at liberty to name the client or link to the site, but I have one remaining customer whose site is hosted on 1&1 shared hosting (I hear their root servers are actually pretty good, my impression of them is based on shared hosting only). I will not accept any further clients on that kind of hosting unless they're willing to change hosting providers.

The client in question is aware of my concerns and shares them, but is afraid to switch because of the logistic operation that it would require. (It would mean that 80-100 not exactly tech-savvy people working for them would have to switch their email accounts, and they don't have a proper IT support to handle that.)

Other than that I can also confirm that I have been lied to by their (the hoster's, not the client's) support people on specific questions about features of their hosting packages, which to me at least is a big no-no in general, but more so if it's about a hosting package that is not exactly cheap.

So yes, really. (Judging from my individual experience and from what I've heard from other people.)

YL
Post Reply