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

URL with anchor #104

Open
mattcam opened this issue Jul 3, 2013 · 4 comments
Open

URL with anchor #104

mattcam opened this issue Jul 3, 2013 · 4 comments

Comments

@mattcam
Copy link

mattcam commented Jul 3, 2013

Is it possible to route to link with anchor?

When navigating to /foo#bar the URL gets rewritten as /foo

Have posted example using following router code on http://test_router_anchor.meteor.com/

if (Meteor.isClient) {
Meteor.Router.add({
'/': 'front',
'/foo': 'foo'
});

@tmeasday
Copy link
Owner

tmeasday commented Jul 3, 2013

It's possibly not supported by the underlying page.js library. I've never tried it myself.

@booshtukka
Copy link

Yes, this doesn't work. :(

@booshtukka
Copy link

I've tested this on a meteor app without Router, and the hash is not stripped from the URL. With Router, it is. This is a necessary feature for deep linking. Any chance it will get any attention?

@tmeasday
Copy link
Owner

Not soon, as I'm working on a different router at the moment.

It's unlikely deep-linking will work out of the box though; the content will usually not be rendered yet when the page first loads, thus anything automatic from the browser isn't going to work. So you'll need to implement your own deep linking unless your templates are completely static. In which case you don't have to use hashes.

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