Home > Enterprise >  Link is not working when URL is embedded in an href tag
Link is not working when URL is embedded in an href tag

Time:12-17

This is driving me nuts. I dont understand why embedding (scraped) URLs to online documents dont work whilst embedded in tags. It looks fine to me and the URLs work fine when pasted into a browser address bar...

Here is an example:

<a href=''https://search.abb.com/library/Download.aspx?DocumentID=5SET0540T1800&LanguageCode=en&DocumentPartId=&Action=Launch''>5SET 0540T1800*  New</a>

I have tried embedding the links straight into a webpage and also a WORD document.

Thanks for any advice

CodePudding user response:

You need to wrap your href attribute like this:

<a href='https://search.abb.com/library/Download.aspx?DocumentID=5SET0540T1800&LanguageCode=en&DocumentPartId=&Action=Launch'>5SET 0540T1800* New</a>

CodePudding user response:

Problem is quotes double time around link -> ''link''. Change it to 'link'

<a href='https://search.abb.com/library/Download.aspx?DocumentID=5SET0540T1800&LanguageCode=en&DocumentPartId=&Action=Launch'>5SET 0540T1800*  New</a>

CodePudding user response:

Use " double quotes instead of 2 single quotes.

<a href="https://search.abb.com/library/Download.aspx?DocumentID=5SET0540T1800&LanguageCode=en&DocumentPartId=&Action=Launch">5SET 0540T1800*  New</a>
  •  Tags:  
  • html
  • Related