You are viewing limited content. For full access, please sign in.

Question

Question

Linking to Weblink via path

asked on April 26, 2016 Show version history

Hi Everyone,

 

If I wanted to share a document/folder with someone who also has access to Weblink - is there anyway to set up the URL to automatically generate the path where I am so that I can merely copy/paste the URL into an email to send to someone? 

Right now, no matter where I am in the Weblink repository, the URL is http://hostname/weblink/Browse.aspx?dbid=0, which means I can't quickly share where I am with anyone.

I've found articles about generating URLs using http://hostname/weblink7/Browse.aspx?dbid=db&startid=y, but this way is quite administratively time intensive for what should be quite straightforward.

 

There must be an easier way to quickly share a link to a weblink folder/document?

 

Suggestions?

0 0

Answer

SELECTED ANSWER
replied on April 26, 2016

Robyn,

 

 In WebLink you can easily get the URL of either the document or folder by right clicking on it and choose either "Copy shortcut" or "Copy link". The URL that was copied will take you directly to the document or folder.

 

Wes

2 0
replied on April 26, 2016

Is there anyway to have this URL address show up in the URL bar?

0 0
replied on April 27, 2016

Robyn,

Yes there is and the way to do this is to open Browse.aspx and add the following JavaScript code before the "</html>" tag and after the "</body>" tag. Once you have done this save the file and reload the Browse.aspx page. You should now see the full URL appear in the location bar.

 

<script type="text/javascript">
    document.body.onclick = function (e) {
        e = e || event;
        var from = findParent('a', e.target || e.srcElement);
        if (from) {
            /* it's a link, actions here */
            window.location = from.href;
        }
    }
    //find first parent with tagName [tagname]
    function findParent(tagname, el) {
        if ((el.nodeName || el.tagName).toLowerCase() === tagname.toLowerCase()) {
            return el;
        }
        while (el = el.parentNode) {
            if ((el.nodeName || el.tagName).toLowerCase() === tagname.toLowerCase()) {
                return el;
            }
        }
        return null;
    }
</script>

The code was tested in WebLink 9 and WebLink 8.x

 

Wes

3 0
replied on April 27, 2016

Wes,

 

Thank you! This is exactly the answer I was looking for! I appreciate your time. 

 

Cheers,

Robyn

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.