Fmstrat / shorten

A URL Shortening and Privacy Tool for ownCloud
31 stars 14 forks source link

Short links appended to index.php #11

Open zkvvoob opened 9 years ago

zkvvoob commented 9 years ago

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:

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

Fmstrat commented 9 years ago

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?

zkvvoob commented 9 years ago

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.

Fmstrat commented 9 years ago

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?

zkvvoob commented 9 years ago

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

Fmstrat commented 9 years ago

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!

zkvvoob commented 9 years ago

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.

Fmstrat commented 9 years ago

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. :)

zkvvoob commented 9 years ago

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!