/    Sign up×
Community /Pin to ProfileBookmark

Why am I getting a "?" for including a forward slash on a link?

Hello, I read in several areas that we should include an extra forward slash at the end of the link addresses on our web pages. That if we don’t the browsers have to look for the address twice. So here is an example of how a link address looks on my web pages.

[url]http://www.webdeveloper.com/[/url] <note the extra forward slash at the end.

But when I do this and the web site address appears in the address bar of the browsers,……… at the end of each web site address it puts a question mark like this: [url]http://www.webdeveloper.com/?[/url]

Which makes me think I am doing something wrong, although the web page does appear. Can anyone help explain? Thank you very much! Rianna

to post a comment
HTML

11 Comments(s)

Copy linkTweet thisAlerts:
@GarySJul 02.2006 — Never seen that happen. Could you post the HTML of you link?
Copy linkTweet thisAlerts:
@felgallJul 02.2006 — A question mark on the end of a web address doesn't make any difference to how the address functions. The only difference it makes is when something follows the ? as what follows is treated as parameters to be passed to the page. The ? will be added if the URL is the action field on a form since that expects to have parameters to pass. It would not normally be added for normal links.
Copy linkTweet thisAlerts:
@RiannaauthorJul 02.2006 — Well, ok, I'll check it out, I do have some form actions with web addresses because the links are attached to buttons and that was the only way it would handle a link was with form action. I can't check it right now, I am right in the middle of switching domain names but I will soon. Thanks!
Copy linkTweet thisAlerts:
@the_treeJul 03.2006 — If they're links, why are they attached to buttons?
Copy linkTweet thisAlerts:
@felgallJul 03.2006 — You normally use buttons to link to another page when you have form data that needs to be passed to that page. If the form has hidden fields and the page it is linking to supports server side scripting then you can post the hidden fields to the other page rather than appending them to the URL.

If you just want a link that looks like a button then coding it like this should avoid the problem by not needing a form:

<button><a href="nextpage.htm">button link</a></button>
Copy linkTweet thisAlerts:
@RiannaauthorJul 04.2006 — Thats right, hey Felgall, I should probably ask you this before starting a new thread on it, I have a feeling you might know.

What is it that allows us to view web page fonts. Our fonts installed with our word program.....or browsers? I am trying to decide if I need to use Weft on some of my pages. So far I am trying to avoid it since Weft only works in IE according to webmonkey. Please let me know, thanks.
Copy linkTweet thisAlerts:
@felgallJul 04.2006 — Weft only works in IE. Netscape 4 had an alternate incompatible method and CSS does have a standard way to attach fonts but no browser supports it yet.

The best solution is to provide a list of fonts in the stylesheet commands. The first font from the list that actually exists on the computer running the browser will be the one used.
Copy linkTweet thisAlerts:
@RiannaauthorJul 04.2006 — Thanks a lot, "The first font from the list that actually exists on the computer"

it sounds like you are saying that the font has to be installed on the computer to view the font. Is that correct? If you are not sure, just let me know. Thanks again. Ri
Copy linkTweet thisAlerts:
@felgallJul 04.2006 — The fonts have to be installed on your visitor's computer in order for your page to be able to use them when they view it.
Copy linkTweet thisAlerts:
@RiannaauthorJul 04.2006 — Awesome, thanks a lot Felgall, your the wiz!
Copy linkTweet thisAlerts:
@RiannaauthorJul 08.2006 — Another reason why I use the form for buttons tree is because for just some of my buttons I cannot get them to work as a link with the href.

You were right Felgall, the question mark only shows up in the address bar on the form buttons, so at least it isn't on all my links. So I am trying to switch some of my form buttons over to the procedure you state in this post. .......<button><a href="https://webdeveloper.com/">button link</a></button>

But when I try to use this the link won't work, any idea why? If no one knows how to get the button to work as a link without the action field, I'll have to stick with what I have, I guess.

Thank you very much! R.
×

Success!

Help @Rianna spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...