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

Is SammyJs capable of routing without hash in the URL #262

Open
iberodev opened this issue May 31, 2017 · 1 comment
Open

Is SammyJs capable of routing without hash in the URL #262

iberodev opened this issue May 31, 2017 · 1 comment

Comments

@iberodev
Copy link

iberodev commented May 31, 2017

I see there is a branch called non-hash and when using the Github comparer it seems that all contents from non-hash branch are in master branch.

I am using sammyJs and I'd like to have the routing without the hash character to make it SEO-friendly. Unfortunately I cannot find any documentation on whether sammyJs is capable of doing so or how to do it.

Any help would be much appreciated.

Thanks in advance.

@iberodev iberodev changed the title non-hash branch has it got any release with non-hash routing Is SammyJs capable of routing without hash in the URL May 31, 2017
@El-Mahbub
Copy link

El-Mahbub commented Oct 12, 2017

Sammy is build from jquery, so you can do all with jquery. this.get(''); will return to index or page that you set before. or inside this.get('') give your function like this :
this.get('',function(context){
yourfunction(context.$element());
});
function yourfunction(el){
el.html('your html or php');
//or window.location.href = 'index.html';
}

Maybe i can help you

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

2 participants