Is It Possible to Make Ctrl+L Links...

User 2388388 Photo


Registered User
129 posts

Hi everyone,

I was wondering how I could change the way that links appear on my site when using Ctrl+l?

Currently Ctrl+L places a link on my page such as: <a href="page1.html">Click Here</a>

What I want it to do is: <a href="http://www.mywebsite'sfullURL.com/page1.html">Click Here</a>

Is it possible to change this??

Thanks Y'all!!

BTW CC Rocks!! I love it. (I usta code / write in Notepad until VERY recently)
User 104702 Photo


Registered User
293 posts

Just replace <a href="page1.html">Click here</a> with <a href="http://myurl.com/page1.html">Click here</a> or replace it with whatever link you'd like to use. If you want the link to open in a new window/new tab use <a href="http://myurl.com/page1.html" target="_blank">Click here</a> So basically you have to replace "page1.html" with the full url of the website/ web page you want to link to... It's basic HTML

Success, John
John van Hulst
User 38401 Photo


Senior Advisor
10,951 posts

Just out of curiosity, why would you "want" to make your links absolute? That actually isn't a good idea unless you have some really good reason for it of course. That creates more HTTP requests to your site and makes site pages load slower. Using the Relative links is a much more proper way to do it. Just curious though as to why you'd want to make them absolute.
User 2388388 Photo


Registered User
129 posts

Actually... it's best to do absolute, especially when you have people copying your content... that way you get a link in return and if you're linking to one of your own internal pages, the link will still work on the site which copied my content.

Now how do ya like that??


(the anonymous website poster (unless you want to click a goo.gl url...) :rolleyes:)


And BTW... Is my intial request possible??
User 2733 Photo


Ambassador
426 posts

Stuart Kaufman wrote:
Actually... it's best to do absolute, especially when you have people copying your content... that way you get a link in return and if you're linking to one of your own internal pages, the link will still work on the site which copied my content.


This gets the award for worst reasoning, ever.

You really should educate yourself regarding hotlink protection if your content is being copied.

Jo Ann is correct. You are making more work for yourself, and your host's hardware. Relative links are always best.

Absolute vs. Relative Paths/Links
Let's not get all hurt.
User 2259710 Photo


Registered User
1 post

^^^ What he said
User 2388388 Photo


Registered User
129 posts

I'm afraid to break it to y'all but I think you guys are smoking crack...

Absolute IS Best (for reasons I provided and more)

If you want to build a site that loads quickly check out GT Metrix.com
User 38401 Photo


Senior Advisor
10,951 posts

You have obviously not been around website building for very long, nor kept up on the current structures for them to know that it's "never" best to use absolute links, and that goes even more so if you're working with gtmetrix.com as they will tell you straight out that one of the things you need to work on is getting your HTTP requests as low as possible so your sites load faster, better, and have better link setups. This is where it is NEVER good to use absolute links as they create a new HTTP request for every single one you use.

Therefore, if you're using absolute links on a menu, heaven forbid a huge menu, then you are creating an HTTP request (big no no in gtmetrix own information if you read it) for every single link on your menu. That means it's loading your entire site (css, page, etc.) for every single link you click.

I think you'd better read up on your own source GT Metrix about links and how to use them.
User 153928 Photo


Registered User
123 posts

Interesting site (GTMetrix) Jo for streamlining. Would you recommend regularly using this site or another while in development mode?
User 2388388 Photo


Registered User
129 posts

Umm.... Bringing this back to the surface...

Actually I've checked with alot of people and using Absolute links in this day and age is perfectly fine. (It's actually not even a little better to use relative)

So... Is there a way to make the editor kick out an absolute url when Ctrl+L'ing??

@JoAnn, If you can find anywhere on this GTMetrix report where it says to minify HTTP Requests I'll eat my words and that's a BET. (but keep in mind that the site tested is FULL of Absolute URL's)

@Robbie Noordzy Actually Google's Site Speed Plugin is much more trusted and better and there's a link to this below.

https://developers.google.com/speed/pagespeed/

Thanks again everyone!!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.