Jump to content

Backoffice Routing


bunoire14

Recommended Posts

Hi,

 

Just installed the 1.7 release after receiving the release email. Ive installed it in a Vagrant development environment in Nginx. Install goes fine and the front office works fine however when I click on Catalog->Products I get redirected to the front office with a "key" parameter in the URL?

 

It happens with a few links in the back office including modules. Is this a bug or have I missed something?

post-916600-0-63848300-1478609258_thumb.png

Link to comment
Share on other sites

It looks like the url is going to the wrong place?

 

If i load 

index.php?controller=AdminProducts

 into the URL manually it opens the product admin page albeit it does complain of a incorrect CSRF token.

 

The original URL from the menu seems to direct me to:

http://StoreURL/admin3335ko6z6/index.php/product/catalog?_token=<TOKEN_HERE>

Any thoughts?

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...

This is a better fix.

If you applied my suggestion above, revert it back then for Nginx rewrite, add the conf below. Note: I've install prestashop in a sub-directory of my web root.

# legacy Prestashop
location ~ ^(/prestashop-directory/.*\.php)(/.*)$ {
    fastcgi_param  SCRIPT_NAME $1;
    fastcgi_param  PATH_INFO   $2;
    try_files $uri $uri/ $1?$args;
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...