Removing # from url of angularJS for SEO with backend as Django

前端 未结 2 1321
抹茶落季
抹茶落季 2020-12-11 09:57

I know removing hash from AngularJS is pretty straightforward but the problem is that the backend is in Django.

So, the app works unless the page is refreshed using

2条回答
  •  执念已碎
    2020-12-11 10:29

    Use Locationprovider instead of routeProvider and enable html5 to true. https://docs.angularjs.org/api/ng/provider/$locationProvider

提交回复
热议问题