Link to a file from Word 2010 is not working

So, I open a file from Chrome (or any other web browser), copy the link.
Then in a Word 2010 file, I insert a hyperlink with the above link.

I expected when I click to the link, it will open the file directly. However, no file is opened. The browser brought me to the default link - My Libraries only.

For testing, I copied a link to a photo on the Internet, and created hyperlink in Word with this image link. When clicking to the link, my browser opens the image directly.

Any idea why I cannot open a file in Seafile? I am using the same computer, I have logged into Seafile account already.

Thanks.

Use the internal Link feature instead.

Nothing changes. I copied the internal link to Word. Ctrl+Click, I only got the default link appearing in my browser.

When I checked seahub.access.log, I see 302 redirect. Idea? Thanks.

my-ip-address - - [01/Nov/2018:14:02:57 +0100] “OPTIONS /smart-link/link-id-here/ HTTP/1.1” 302 0 “-” “Microsoft Office Protocol Discovery”
my-ip-address - - [01/Nov/2018:14:02:57 +0100] “GET /smart-link/link-id-here/ HTTP/1.1” 302 0 “-” “Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; ms-office)”
my-ip-address - - [01/Nov/2018:14:02:57 +0100] “GET /accounts/login/?next=/smart-link/link-id-here/ HTTP/1.1” 200 12011 “-” “Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; ms-office)”
my-ip-address - - [01/Nov/2018:14:02:57 +0100] “GET /accounts/login/?next=/smart-link/link-id-here/ HTTP/1.1” 302 0 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36”
my-ip-address - - [01/Nov/2018:14:02:57 +0100] “GET / HTTP/1.1” 200 160118 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36”
my-ip-address - - [01/Nov/2018:14:02:58 +0100] “GET /api/v2.1/notifications/?=1541077602855 HTTP/1.1" 200 18 “https://my-seafile-installation-url” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36”
my-ip-address - - [01/Nov/2018:14:02:58 +0100] "GET /api2/repos/?type=mine&
=1541077602856 HTTP/1.1” 200 700 “https://my-seafile-installation-url” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36”
my-ip-address - - [01/Nov/2018:14:02:59 +0100] “GET /api2/account/info/ HTTP/1.1” 200 260 “-” “Seafile/0.9.5 (Windows NT)”

Also, I noticed it is happening on Windows 7 - Office 2010. I tested on Mac with Office 2016, the link can open directly, no redirect.

A setting in Office 2010???

I have really no experience with internal links, maybe @111 can help you, he is one of the few people using them. But your seahub.acces.log definately says nothing, I think you need the client’s logs. You created the internal Link with the client, didn’t you?

I copied internal link from web GUI. Tried with client, and nothing changes. Still get 302 redirect to the default URL

Are Links working generally?

Yes. If pasting the links directly to the browser, they work. But not opening from Office documents.

And any other link in your Office documents work?

I already mentioned in my post :slight_smile:

Sorry, forgot this

I used the old type of internal links, which allowed the client to open the corresponding file by the application on the desktop.
New type of internal links is designed to open the file online.
It is a pity that the authors have removed an old type of links.
With regard to the fact that the link does not open from the Word, I can only confirm. Most likely the Word is somehow strangely conveying a link

I thought something wrong with Word 2010, but then in the seahub.access.log I posted above, I can see full smart-link URL with link-id, then 302 redirect. So, Word did send full URL to Seafile already, but Seafile doing something there, to create 302 request.

Am I wrong?