Hello, so I have a problem, currently my site has direct URL with anchors for the HTML:
http://site.com/franks#!/franks/34232157/1
But when I go there in the browser it changes the URL to
http://site.com/franks/34232157/1
I need it to stop this behavior, I am using nginx as web server and as redirection, there several rules for redirecting, the site is not mine, I am just doing some fixing, so I don't have much information, the redirections I think can be doing this are:
rewrite ^/(\w+)/embed/&(.*)$ /newestentry/request.php?taglist=user/$1&$2;
rewrite ^/(\w+)/$ /;
rewrite ^/(\w+)$ /newestentry/request.php?taglist=user/$1;
rewrite ^/(\w+)/(\w+)/$ /;
rewrite ^/(\w+)/(\w+)$ /newestentry/request.php?taglist=user/$1/$2;
rewrite ^/(\w+)/(\w+)/(\w+)/$ /;
rewrite ^/(\w+)/(\w+)/(\w+)$ /newestentry/request.php?taglist=user/$1/$2/$3;
rewrite ^/(\w+)/(\w+)/(\w+)/(\w+)/$ /;
rewrite ^/(\w+)/(\w+)/(\w+)/(\w+)$ /newestentry/request.php?taglist=user/$1/$2/$3/$4;
rewrite ^/(\w+)/(\w+)&(.*)$ /newestentry/request.php?taglist=user/$1/$2&$3;
rewrite ^/(\w+)&(.*)$ /newestentry/request.php?taglist=user/$1&$2;
Thanks
http://site.com/franks#!/franks/34232157/1
does not look like a great url
http://site.com/franks/34232157/1
can handle path info
http://site.com/franks?34232157/1
is probably better
You cannot depend on anything after the # to be sent to the server correctly - it is for browser use only and for example some IEs will not even send it at all.