LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 09-14-2017, 03:56 PM   #1
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Thumbs down A site request will be made for anchors that should be relative to current page


The links used in each post number, given as "#dd" in the upper right limit of a post, are not always relative.

For example, a recent thread I have made can be seen in

hXXps://www. linuxquestions. org/questions/linux-general-1/how-to-write-this-html-form-in-the-address-bar-4175613799/

or in

hXXps://www. linuxquestions. org/questions/showthread.php?p=5758831

The longer URL has the thread title written, ok. But if I can make a link, I will use the second URL.

In my post #7 there, it does not matter if you're seeing with the longer or the shorter URL, you will always get links with the longer URLs. The bad side-effect of this fact is that if you open the thread with the shorter link and click on any "#dd" link, your browser will reload the page already there, wasting server resources.

To fix that, I would choose all "#dd" to be made with "href='#postNumber' ", so browsers will always use local links.

This is important because I want to be able to copy the shorter links from a page, and right now is too hard to get them (manually building).

I prefer
"left click + address bar click + (CTRL+C) + (ALT+TAB) + (CTRL+V)"
much more than
"right click + find the right menu option to copy the link URL + anything"
.

I think many people reading these fora will prefer the same as I do.

To copy the URL to a post using only the mouse it not made too hard, if what I suggest is used. It is just:

"left click + address bar right click + menu option click + ..."

or

"left click + address bar left click + (CTRL+C) + ..."

p.s.: another problem I found by making this thread is that I really want want to make links with the shorter URL versions, but when I used

hXXps://www.linuxquestions.org/questions/showthread.php?p=5758831#post5758776

inside an URL tag, it is changed to the longer URL in the thread previews and in the created threads. That is sad. ):

Last edited by dedec0; 09-14-2017 at 10:43 PM.
 
Old 09-14-2017, 09:44 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
The #postnumber links should always link to an anchored #postid URL. I'm not able to reproduce them doing otherwise anywhere on the site and we should never link to URLs in the second format (and haven't in a very long time).

--jeremy
 
Old 09-14-2017, 11:02 PM   #3
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Arrow

You cannot reproduce it... strange... well, to find the shorter link I used a thread I created about something else. Playing a bit, I found out how. Shorter links are found by doing:

1. Receive an email notice for any new post in a thread you follow.

This message will have a link similar to:

LQ /questions/lq-suggestions-and-feedback-7/request-will-be-made-for-anchors-that-should-be-relative-to-current-page-4175613810-new/

2. Open that link.

For the link above, I was redirected to this address:

LQ /questions/showthread.php?p=5758938#post5758938

In that page, all the "#dd" links are *not* relative, and will cost another server request.

Further, I suggested the address in those anchors are totally shorter, without the actual page address in them. Is this idea clear?

I want

Code:
<a href="#post5758841" ...
instead of

Code:
<a href="https://www.linuxquestions.org/questions/lq-suggestions-and-feedback-7/
           request-will-be-made-for-anchors-that-should-be-relative-to-
           current-page-4175613810/#post5758841"
           ...
 
Old 09-15-2017, 08:38 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
Thanks for the feedback.

1) The -new links are indeed treated a bit differently, currently.
2) We have on plan to use relative URI in this case, as it would break copy/paste and has no real advantage.

--jeremy
 
Old 09-15-2017, 09:45 AM   #5
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Unhappy

Ok. Copy and paste is important, but please change "new" links so they redirect to the longer URLs. To copy and paste post links is something I do fairly often too.

I prefer to do

left click + (CTRL+L) + (CTRL+C) + ....

or

"fake left click" the link using the keyboard + (CTRL+L) + (CTRL+C) + ....

instead of

right click + click the menu option to copy link location + ...

Clicking the right menu option is harder and slower, IMO. But it currently makes the page reload... frustrating because it is there, with all I need.
 
Old 09-15-2017, 09:52 AM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
It's not a change we plan on making at this time. I'll put it on the backlog currently holding on the pending code update.

--jeremy
 
Old 09-15-2017, 10:02 AM   #7
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by jeremy View Post
It's not a change we plan on making at this time. I'll put it on the backlog currently holding on the pending code update.
Ok. That is fair enough.

Last edited by dedec0; 09-16-2017 at 03:26 PM.
 
Old 09-16-2017, 03:32 PM   #8
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Arrow There is another way to get the old thread address!

The onsubmit for editing posts will lead to old URLs tpp. For my previous post, it led to:

hXXps://www.linuxquestions.org/questions/showthread.php?p=5759119#post5759119

I knew that I have seen them a lot more than the times I clicked on or copied URLs received in emails...
 
Old 09-17-2017, 06:50 AM   #9
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Arrow Yet another way to use the (old?) shorter addresses: "Zero Replay Threads" messages

Yet another way to use the (old?) shorter addresses is to visit the threads received in "Zero Replay Threads" messages. All of the are similar to:

LQ /questions/showthread.php?threadid=4175613946
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
two hourly web page request of unknown origin neonsignal Linux - Security 3 01-16-2013 06:24 PM
Just made a project page dive Slackware 15 05-06-2010 08:53 PM
rasterize pdf made up of multiple bitmap slices / page danutz Linux - Software 2 12-21-2009 05:10 PM
Slackware64 -current made public! bsdunix Slackware 289 06-19-2009 12:15 AM
Bad Request when web page loading wmartino Linux - Networking 2 09-14-2003 09:25 AM

LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration