Question: let's say initially I am on page which has URL like "www.example.com/check/checkid now when I refresh page I want the URL to be changed how I can do that in angular Js .

Answer: 
You can use $routeProvider, which is the provider of the $route service. This service makes it easy to wire together controllers, view templates, and the current URL location in the browser. 
I hope It will help.

<http://viralpatel.net/blogs/angularjs-routing-and-views-tutorial-with-example/>
Maybe you can add a run block to do that, for example:

```
angular.module("myApp", [])

  .run(['$location', function($location) {
    // some logic
    $location.path("/somepath");
  }]);

```