shorten icon indicating copy to clipboard operation
shorten copied to clipboard

Short links appended to index.php

Open zkvvoob opened this issue 9 years ago • 8 comments

Hello,

I've just completed configuring your app according to the installation instructions and I think I did everything I was supposed to. Nevertheless, when I open the share dialogue box in Files, the link is like this: https://www.site.eu/o/index.php/s/5aHDbMR1qJrhApd and not as in your screenshot https://www.site.eu/s?5aHDbMR1qJrhApd.

The setup is as follows:

  • owncloud running on https://www.site.eu/o
  • shortening service added to directory s under https://www.site.eu
  • in REMOTE-HOST/index.php: $owncloud_url = "https://www.site.eu/o";

What have I done wrong? Is there any way to actually keep the o/ directory even for shortened links?

zkvvoob avatar Mar 15 '15 10:03 zkvvoob

Sorry for the delay, notifications somehow got turned off and I've been focusing on ownNote. What do you have in the settings field? Also, after sharing, if you reload the page, then go back to the file, does it have the new URL?

Fmstrat avatar Mar 27 '15 13:03 Fmstrat

No problem, mate. Here's a screenshot of the settings: shorten1

After my first post, I moved /s/index.php to a subdirectory of my owncloud installation, which is located at https://www.site.eu/o.

And here's how the option to share a file looks like: shorten2

I'm not sure I quite understood your last question, though. The shortened URL remains the same, whether I open it, reload it or anything else, as fat as I can tell. If you want me to test anything, let me know.

zkvvoob avatar Mar 27 '15 16:03 zkvvoob

It actually looks like it's not working at all, since the URL appears to be an original long-form share URL. As for what I mean in this bug: https://github.com/Fmstrat/shorten/issues/3 look at the video supplied by a user here: http://goo.gl/KswEl7

Does that happen for you? I.E. going to the shared files section and the correct URL pops up for a time?

Fmstrat avatar Mar 27 '15 17:03 Fmstrat

Not exactly like on the video, meaning I don't get this constant "Please wait...", but when I refreshed OC's page and opened a file's sharing dialogue, the link changed like this:

shorten3

zkvvoob avatar Mar 27 '15 17:03 zkvvoob

OK, sounds like these problems are related. I'm going to close this issue down, and please follow that one for the upcoming fix once I figure it out. Thanks!

Fmstrat avatar Mar 27 '15 19:03 Fmstrat

Sorry for opening this again, but even after using the github master version and updating to OC 8.0.3, the same problem still persists.

Not only that, but yesterday, when I sent a short link to a friend, when they tried to open it, it loaded an empty page.

zkvvoob avatar May 05 '15 11:05 zkvvoob

OK, I will investigate. I need to get a new version published anyway. My time lately has been on ownNote and Emby SSL, need to get back over here. :)

Fmstrat avatar May 05 '15 14:05 Fmstrat

Hi again,

I've just updated to the latest version 0.0.13 and I still can't get rid of the 'index.php' part of the supposedly shortened URL

shorten1

shorten2

My setup is as follows: Owncloud located at https://www.site.com/o Shorten REMOTE_HOST located at https://www.site.com/s

Any ideas what I might have done wrong? Thanks!

zkvvoob avatar Oct 16 '15 08:10 zkvvoob