-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hash in url in files app leads to root #14828
Comments
@LukasReschke encoding fun? 🙊 |
I don't think so. I suspect that the URL parsing code is parsing too much. |
@PVince81 maybe this can help owncloud/gallery#50 |
Even if the gallery app properly cleans up the URL, we still need to make sure to fix the parsing code |
So it seems the files app is just not expecting any # in the url. The # breaks the url because of the last function. Since that looks for the location of the # in the url. Normally this works because there is no # and all can be parsed as it should. But once there is a # only the last part gets parsed. And of course then it does not find valid stuff. This means the following URL will work: So it seems the files app just abuses some functions that most of the time return the correct result. |
@rullzer the hash strategy is used as a workaround for IE8 that doesn't support changing the URL. |
@PVince81 aaah good old ie8. |
I think if we'd remove the IE8 workaround, then it means that IE8 would be back to OC 5 behavior: refresh the whole browser page when navigating. IE8 users are probably already used to sub-par user experience 😉 |
While the |
Setting severity to low as there's an easy workaround |
Coming back to this as it's breaking the Files app when users use the browser's forward button. |
Yes... maybe we need a way for apps to define URL routes in JS so we could reroute requests to them. |
Ok, actually the file list should make sure that onPopstate doesn't trigger a folder change event if it's the same folder. That might help fixing it. |
Similar issue: #19120 (comment) |
Fix is here: #19418 Now also reproducible with the next text editor, when closing the editor then refreshing the page. |
Steps to reproduce
Expected behaviour
The page stays at the folder "pics", and the url should be
http://.../owncloud802/index.php/apps/files/?dir=%2Fpics
Actual behaviour
It goes back to the main page with the url:
http://.../owncloud802/index.php/apps/files/?dir=%2Fpic2#/pics/P100.JPG
Server configuration
Operating system: Ubuntu 13.10
Web server: apache 2.4.6 (Ubuntu)
Database: SQLite
PHP version: 5.5.3-1ubuntu2.3
ownCloud version: 8.0.2
Updated from an older ownCloud or fresh install: 8.0.0-beta2
List of activated apps: standard apps of owncloud
The content of config/config.php:
Are you using external storage, if yes which one: no
Are you using encryption: yes
Client configuration
Browser: firefox 35.0.1
Operating system: ubuntu 13.10
Logs
Web server error log
ownCloud log (data/owncloud.log)
Browser log
The text was updated successfully, but these errors were encountered: