How to redirect URL on refresh in Angular?

How can i redirect a URL to another URL back to the original URL?

  • For example, you would redirect http://google.com to http://yahoo.com back to http://google.com, is that possible because i am trying to setup voting gateway for website but i have to redirect it back to my site.

  • Answer:

    Sure you could! All you would need is to own the websites!

Partyboy at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

When you are redirecting to site2 from site1, send the site1's url while redirecting. EG window.location ="http://www.site2.com/page.html?url=www… After your work finished in site2, fetch the site1's address from the url and redirect it back to site1

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.