The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Redirecting Links
ccrider246
post Mar 14 2018, 09:10 AM
Post #1





Group: Members
Posts: 2
Joined: 14-March 18
Member No.: 26,608



I just started working with a document controller for our department knowledgebase. He is relatively new to HTML. The knowledge base is relatively large. Many of the articles will contain hyperlinks to other internal SharePoint sites. Many of the articles will contain the same hyperlink target. What I want to do is have him place all hyperlinks in one resource article. When a link in one of the original articles links to an internal SharePoint site, I want the link in the various articles to refer to the target of the link in the resource hyperlink and open that target in a new browser window.

I may not be explaining this clearly, but if an Internal SharePoint URL changes, I want to be able to go only to the Resource article and change the target of that hyperlink. I don't want to have to go to every article containing that link and change the hyperlink target. I figure we will have to anchor each of the links in the Resource article but I would like to know if it is possible to do this. I don't want to have to link the user to the resource article and make them click another link to get to the target. I'm not doing the work so I don't need to know the steps required to make this happen. Maybe a high level explanation if possible. I just want to know if what I am trying to explain can, in fact, be accomplished.

So, can we clink a link in an article and have it open the target of the link on the resource article in a new browser window?

Thanks in advance,

Chris Allen

This post has been edited by ccrider246: Mar 14 2018, 09:11 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 14 2018, 09:54 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,967
Joined: 9-August 06
Member No.: 6



If I understand you half right you can't do that with HTML. HTML isn't capable of any kind of logic. It's a mere markup language.

You would need a programming language. If it's a large collection of links maybe a database would be handy too. Point is, the URLs in your links would look something like the below.

CODE
example.script?resource=01

Your script would read the query sting (resource=01) and translate it to the URL corresponding to 01 in a collection of links and then redirect the browser there. I'm pretty sure ready made scripts that do that can be found.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
ccrider246
post Mar 14 2018, 11:35 AM
Post #3





Group: Members
Posts: 2
Joined: 14-March 18
Member No.: 26,608



Thanks for the quick reply, Pandy. I handle the issue by opening the Resource article in a new window and have them select the direct link to the external site.

Cheers,
Chris
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 14 2018, 12:49 PM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,967
Joined: 9-August 06
Member No.: 6



Don't think they'll love that...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th August 2018 - 10:25 PM