I will explain: I need to make authorization through VK. At a certain stage of authorization, VC should redirect me to a specific address, and I, in turn, should complete authorization.

VK cannot be forced to redirect the user to the following address:

http: // localhost: 8000 / #! / network-choose / auth / vk

And for this you can:

http: // localhost: 8000 / network-choose / auth / vk

The question is - is it possible to somehow force angular to operate with absolute paths, without the "#!"?

If not, how to solve my problem?

  • one
    html5mode - Grundy
  • @Grundy, as I understand it, this is not a universal solution. The documentation says that if the user's browser does not support this mode, then regular URLs will be used. - Ilya Bizunov
  • it is supported by all stable versions of browsers - Grundy
  • one
    Well, in any case - just process this url on the server and return the necessary page and then the angular - Grundy

1 answer 1

On the advice of Grundy, I use html5mode .