inherit
143665
wildgoosespeeder wildgoosespeeder wildgoosespeeder
0
Jun 14, 2018 5:59:55 GMT -8
wildgoosespeeder
ProBoards V5 be trippin'. I'm disoriented. :P
4,393
August 2009
wildgoosespeeder
|
Post by wildgoosespeeder on Dec 2, 2010 13:10:17 GMT -8
I see this all the time. People tend to put a full link to somewhere else on their forum. If a forum has multiple domains (a domain is "www.google.com" excluding the protocol "http://"), this can make a member think they have logged out but really they didn't.
To avoid this, first I'll show you improper linking with the <a> tag (even though this works):
<a href="http://support.proboards.com/index.cgi?action=viewprofile&user=wildgoosespeeder">wildgoosespeeder</a>
Now improved:
<a href="index.cgi?action=viewprofile&user=wildgoosespeeder">wildgoosespeeder</a>
Both will take you to the same place.
How does this work you ask? Well your browser automatically inserts the protocol ("http://"), domain ("support.proboards.com"), and path (none in this case).
Note: Does not work with [a href=""][/a] or [a href=""][/a] tags.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Dec 2, 2010 17:39:55 GMT -8
Yes, that's the HTML standard for handling the <a> tag.
No domain (due to SEO purposes) should work both with and without WWW. mod_rewrite should be used to 301 redirect one to the other.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Dec 2, 2010 18:37:33 GMT -8
Most people in here already know this, but I see it done a lot too. I always include the "/" at the beginning of the URL so it looks like "/index.cgi?...".
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Dec 2, 2010 18:51:58 GMT -8
And I always just start with the ? and then the query string. You don't even need index.cgi. It's worth mentioning using gotothread over requiring a board for a thread URL as well... much quicker and easier on the user.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Dec 4, 2010 11:44:30 GMT -8
Most people in here already know this, but I see it done a lot too. I always include the "/" at the beginning of the URL so it looks like "/index.cgi?...". I do that as well, unless I'm in a directory. While it's possible there, I try to make sure my codes will still work even if I choose to rename the directory in the future. And I always just start with the ? and then the query string. You don't even need index.cgi. Bah, that's always been a pet peeve of mine. I don't know why. It just never looks appropriate to me. Is it a standard to accept that, or do browsers just accept it anyway?
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Dec 4, 2010 13:39:34 GMT -8
And I always just start with the ? and then the query string. You don't even need index.cgi. Bah, that's always been a pet peeve of mine. I don't know why. It just never looks appropriate to me. Is it a standard to accept that, or do browsers just accept it anyway? I have no idea if it's a standard actually. Running a validation on a website that uses it produces no errors, so I see no reason it causes an issue. The only browser I haven't tested in (recently) is Chrome, so I'm pretty sure all major browsers support it. (Should any recent browser not support it though, I have no qualms switching styles. )
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Dec 4, 2010 14:24:27 GMT -8
I'd like to know if it's standard. It would certainly make forms easier. I'm tired of using $_SERVER['PHP_SELF']. >_<
|
|
inherit
164686
0
Oct 6, 2013 6:55:56 GMT -8
missy72
127
March 2011
missy72
|
Post by missy72 on Jun 26, 2011 22:07:48 GMT -8
<a href="index.cgi?action=viewprofile&user=wildgoosespeeder">wildgoosespeeder</a> Hiya I was wondering if you can use this method to link to a board and if so what would I put and where - thanks in advance for any help
edited to add feeling very clever this morning figured it out
|
|
Former Member
inherit
guest@proboards.com
167249
0
Nov 29, 2024 5:26:20 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 28, 2011 20:48:28 GMT -8
Bah, that's always been a pet peeve of mine. I don't know why. It just never looks appropriate to me. Is it a standard to accept that, or do browsers just accept it anyway? I have no idea if it's a standard actually. Running a validation on a website that uses it produces no errors, so I see no reason it causes an issue. The only browser I haven't tested in (recently) is Chrome, so I'm pretty sure all major browsers support it. (Should any recent browser not support it though, I have no qualms switching styles. ) It works in Chrome as well.
|
|