-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use without hasthag #69
Comments
Realized it's the wrong place for this question and asked it again here: |
hasher only handles |
So as I'm interested in the question I started to figure out a way to hack it. https://github.com/millermedeiros/Hasher/blob/master/dist/js/hasher.js#L80 One of the problems are cases when aplications are not in root folders. |
The other thing I was not seeing is that links like this require the whole page to load again. The third is is that if the link is without a hashtag then the next time the link is presented as "#/newlink" then it will be turned into "domain.com/link#newlink" which requires me to rething linking. Neverthelss if I tried this:
it enabled my app to receive both "domain.com/#/link" and "domain.com/link" the same way, which is something! |
I just built a Wordpress theme relying on Signals, Hasher and Crossroads. https://github.com/jayJs/wp-jay Bet you did not see that one coming. Since Crossroads has so many subscribers I think this thread here might be the best place to continue discussion about removing the hash from URL. If I could pick any person from the world to talk about that specific topic, then I think it would be you :). |
So sorry for bother you with this again. Since everything after "#" is not sent to the server by crawler, it might actually make sense to have http://site.com/#/page-1 respond with the same content. Could this argument turn this question into a feature request? |
want to know if this is possible. Trying to integrate our SPA into another framework, so it is having issues with the # and handling it in unexpected ways. I find though if i used ? in the url I can bypass the other framework's handling of the #. Anyway to change? |
I've implemented it here: and here: It did require the above mentioned addition to Hasher, I implemented it here: Somebody just tell me, if this should be a pull request - I consider it a mere hack, since it's not the only requirement needed, to make hashtagless routing work. The other things necessary are:
and I'm pretty sure, there are easier ways to this. |
Thank you for this awesome library!
I'm using it with:
https://github.com/jayJs/jay
and
https://github.com/jayJs/node-jay
Signals and Crossroads are also involved.
Question:
Current url: "www.domain.com/#/post/first-post"
How I'd like it to be: "www.domain.com/post/first-post"
So the question is about what's the best strategy for achieving this?
The text was updated successfully, but these errors were encountered: