Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reload a path once it has already loaded? #85

Open
Patchee opened this issue May 15, 2015 · 2 comments
Open

How to reload a path once it has already loaded? #85

Patchee opened this issue May 15, 2015 · 2 comments

Comments

@Patchee
Copy link

Patchee commented May 15, 2015

For example, I have this:

Path.map("#!/login").to(function(){
alert("called");
$.ajax({
url: '/login',
type: 'GET',
data: {

    },
    success: function(msg) {
        $('#' + main_window).html(msg);
    }
})

});

Which makes my URL to: http://www.domain.com/#!/login. However once loaded, there is no way to "refresh" the url- hitting enter in the address bar or clicking a link with that path won't execute the Path. Does anyone know if this is an issue or if I'm doing it wrong?

@aMarCruz
Copy link

aMarCruz commented Jul 4, 2016

@Patchee , try window.location.reload()

@vinujan59
Copy link

@Patchee , have you resolved this issue, If so i would like to know how. Stucked in same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants