Skip to content
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

Path says admin/admin #12

Open
kerim opened this issue Mar 30, 2014 · 2 comments
Open

Path says admin/admin #12

kerim opened this issue Mar 30, 2014 · 2 comments

Comments

@kerim
Copy link

kerim commented Mar 30, 2014

For some reason the path to my files now says admin/admin when trying to edit a file, and so it is getting 404 errors on trying to edit.

@kerim kerim changed the title Not working in Chrome Path says admin/admin Apr 2, 2014
@crempp
Copy link

crempp commented May 14, 2014

The problem is poor pathing, this is a common and difficult problem when trying to support all possible installation cases.

You'll need to edit line 92 (your line will depend on the which commit you're on) of plugins/pico_editor/editor.html. The exact change will depend on what your installation looks like. I changed this

$.post('admin/open', { file: fileUrl }, function(data){

to this

$.post('open', { file: fileUrl }, function(data){

and it worked.

Now I have the "Error: Invalid file" issue.

@kerim
Copy link
Author

kerim commented May 14, 2014

That worked. Thanks!

Also has to be fixed for "save" and "delete" commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants