Extracted URL not redirecting - html

I am looking at the following site: https://www.lg.com/us/press-release.
I need to get a link to go directly to the computers tab, and it needs to be a url.
I extracted and tried: https://www.lg.com/us/press-release#press-list5 however this still redirects.
Can someone tell me what the URL is to go directly to the computer tab please?
Thanks

I don't think a URL is going to work. I believe there's some Javascript at work here.
Why?
Before/Unclicked:
Computers
After/Clicked:
Computers
So once it's clicked, the list item has the active class added and the aria-selected attribute set to true. So a URL with a bookmark doesn't look like it'll work.

Related

HTML Link not redirecting correctly - its navigating to www.oldpage.com/http://www.google.com?

Any one got any ideas why this is happening?
My html quite clearly is
www.google.com
However, when I click it, I am navigated to the incorrect URL.
In my case to -- http://localhost:8000/profile/1/www.google.com
Then the link is actually working. But the URL is wrong. You're using this URL:
"www.google.com"
But a browser has no way of knowing that this is another website. Structurally it's no different than, say, this:
"www.index.html"
Which is a perfectly valid name for a resource on your website.
To tell the browser that this should go to another website, include the protocol:
"http://www.google.com"
Or at least the // at the start to default to whatever the current page's protocol is:
"//www.google.com"
The URL You are using is
www.google.com
Which will not redirect to the site, You have to use it like this:
https://www.google.com
Ex.:
Working URL<br>
Not Working URL

<a> link puts page name at end of url

Sorry if the title is confusing, I wasn't exactly sure how to word this.
Basically what I want to do is make a link, simple enough. The page is tylerofcinema.github.io and if I make a link to say, google.com the url that I get is tylerofcinema.github.io/google.com.
Code is in a repo here, let me know if there is any clarification needed.
Thanks, Diego
You did not include the protocol of the url, causing the href to think it needs to open a page in the same directory.
Try adding http:// (or https://) to your href and it will open the specified url.
<a target="_blank" href="https://tylerofcinema.github.io/r/twitter"><button class="homesmb">Twitter</button></a>
should be a simple syntax error.
My suggestion would be to change the url to the full address like http://www.google.com so that the browser understands you mean the actual google server and not something else. give it a try
just add // before the start of the link, it should work

How to link a webpage to itself without first knowing its name?

To link a page to itself (e.g. http://example.com/folder/ThisPage.html), we can simply create a href as such:
ThisPage.html:
Link
This works, but has the disadvantage of needing to be updated when the file name changes. For example, if the file name changes to ThatPage.html, our href needs to change accordingly to Link.
I'm looking for an alternative without that disadvantage. I've tried:
Link
Doesn't work as Link does, because it appends a "blank query part" (question mark) to the URL.
Link
Doesn't work as Link does, on some browsers (e.g. Opera).
How do we link a page to itself, without having to update the relevant portion when the name of the page changes?
Note: JavaScript not allowed.
Just use Link. Nobody cares about the question mark appended to the URL. It does the requirement and that is what counts right?
It's very simple, just leave the href="" blank. So that's how:
Click me to refresh page
But this is not necessarily a good idea, because the cache may not be cleared, and whatever you need it for, if the page has changed in the meantime the change may not appear despite the reload. Probably a better idea is the javascript code location.reload(); to take. But there are enough explanations on other sites, which is why I won't explain it here. You can of course also for example take a question mark (?), but this is unnecessary, actually not intended for it and can cause problems depending on the program.
Here is a short list of common hyperlinks:
Points to the root page
Link
Points to a file relative to the root page
Link
Points to a file relative to the current file
Link
Points to a file in the previous folder
Link
Points to a file in the second previous folder
Link
Points to a file in a folder below
Link
Points to the current file
Link
Points to a page with a different host but the same protocol
Link
I hope that my answer will help some people, because I found it via a search engine and saw that there is no correct answer. And it's my first answer here 😅
If you want it to go nowhere, you can use
link
But if you want it to reload the page, you'll have to go with JavaScript.
If you want to reload the page you could use the Meta refresh tag
http://www.w3.org/TR/WCAG20-TECHS/H76.html
If you want to reload the page, you really should take a look into javascript. It is the best way to do it.
Just do this:
This Very Site
Source: I saw this in the source code of Matthew Alger's website. Check it out for yourself!
Why not try ?
I looked some things up, and as it turns out, ./ refers to current directory.
You can just make a link to the same page.
Here ya go. Hope this is what you are looking for
Link

Facebook share button only works the first time

I am working on this website: http://www.annashome.com/site/index.php
I have a very strange problem. On each product's page I have a Facebook share button which works fine when using (or opening) it the first time but if you then go at another product's page and try to use it (share or just open) it brakes the URL (doesn't show title,description,image,etc.). I need it to show the title,image and desciption at all times.
If I clear cookies and try the button it works once again but not the second time on another product...
I have set all the attributes such as og:title, og:description, og:image and have checked the DOCTYPE but I still cannot figure out why it shows the correct info when using it for the first product but not the others.
I use addthis.com and have chedk it also. It's really bugging me.
I would really appreciate if you'd have some tips for me !
Thank you !
Actually, the facebook share button works as it should - without any problems. You probably have an url rewrite problem or only a basic setting in the admin menu needs to be changed. Every product you have can be accessed from two different addresses. For example:
http://www.annashome.com/site/index.php/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
In this case, if you share it, the link will be broken.
http://www.annashome.com/site/furniture?page=shop.product_details&product_id=16076&flypage=vmj_genx.tpl&pop=0
In this case, it will work.
You can also see, that the share counter doesn't have the same number.
Your site adds this to your address on every product: "index.php/". If you remove it, everything will work as it should.
Hope this helps.

setting html parameter option dropdown value via url

I would like to set the default of a drop-down menu of a webpage by passing the default value in the url.
Id like to put a link on a another webpage to this site where the: "I would like my contribution to go to:" option is set to Pakistan: moonsoon floods e.g. by doing something like:
http://donate.ifrc.org/?desc=Pakistan: monsoon floods
but this doesnt seem to work. Any ideas i want to put up this link to get as many people to donate as possible. Thanks.
~f
Unless the site you are linking to has specifically included code on their pages to support it, you are not going to be able to control how their site performs by changing the URL.
If you were trying to do this on your own site, you could easily do it by referencing the querystring parameters in whatever server-side language you built the site with, or on the client-side via Javascript. But in either case, the site itself controls how it responds to a URL, not the other way around.