I am using this rule in Yii 2.0:
‘<controller:\w+>/<id:\d+>’=>’<controller>/view’
When I go to the url domain.com/item/1234 it will load just fine. However, when I link to it from another page, it will quickly go to domain.com/item/1234# then and redirect to domain.com/item/1234. I normally wouldn’t care but when I hit the back button the browser, the URL will go back but the page won’t actually go back. Also, when I link to domain.com/item/view/1234 it will load just fine, no weird link and I can go back.
I’m not sure if this is a bug or if I am doing something wrong.
Thanks