Skip to content

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

@Patchee

Description

@Patchee

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions