-
Notifications
You must be signed in to change notification settings - Fork 25
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
[7.0.3] Text editor not compatible with browser back button #50
Comments
Ideally the text editor should have its own unique URL, but the infrastructure to support this (and make other apps plug into that system) is not there. A possible workaround would be for the files app to broadcast an event "closeApp" or something whenever the browser back button is hit, and the text editor would listen to it and close itself when told to. |
Maybe a modify/save warning too. |
Similar caseIf you open a text file and in the text file you click on the "Go back one page"-button of the browser, you will rest in the text file, but in the background ownCloud returns to the previous folder. Steps to reproduce
Server configurationOperating system: Web server: PHP version: ownCloud version: (see ownCloud admin page) Client configurationBrowser: Is it possible to fix this error/bug? When I click on the "Go back one page"-button of the browser, I would like to go back to the folder where I was when I clicked on the text file, like in ownCloud 6. 00002190 |
@PVince81 How about the workaround? #50 (comment) |
Out of scope for OC8 -> OC8.1 |
Prerequisite work in core: owncloud/core#13414 |
If you don't need IE9 compatibility, this works well
|
@oparoz mind sending a pr? Thanks a lot! |
Not sure as this requires knowledge of the way the app works, creation of new steps in history and new calls for the close button. Usually, the browser's back button goes back one step in its history, but some apps don't add a new step and simply modify the current URL in order to not be inserted in history... I'll gladly help the maintainer though. |
I can confirm: Closing text editor with browser back button keeps user in the current directory. Thanks! |
expected behavior
modify a text, save and click back in browser and goes back to the files directory
actual behavior
modify a text, save and click back in browser and stay in the editing, but path appears 2 times up.
if you press many times (back) it goes randomly to any page you had open (I still can't explain why it jumps to different pages)
In reference of : owncloud/core#12134
@jancborchardt @LukasReschke @DeepDiver1975 @PVince81
The text was updated successfully, but these errors were encountered: