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

Can't transition between the same template #5

Open
awesomepan opened this issue Nov 22, 2012 · 3 comments
Open

Can't transition between the same template #5

awesomepan opened this issue Nov 22, 2012 · 3 comments

Comments

@awesomepan
Copy link

@tmeasday Thank you for your transitioner, in my case, I want to use:

http://hostname to tempalte="home" and http://hostname/:page to template="page"

so, now the transitioner can't support for http://hostname/:page (between different url, same template)

How to improve it, I think there must use Session or other...

Thank you!

@tmeasday
Copy link
Owner

I'm not sure I understand? What is the problem here?

@awesomepan
Copy link
Author

@tmeasday Thank you for response, such as: example/slider/slider.js

change

Meteor.Router.add({
'/': 'home',
'/:page': function(page) { return page; }
});

to

Meteor.Router.add({
'/': 'home',
'/:page': function(page) { return 'page_template'; } // All :page match template -> page_template
});

Now, transitioner will not animating.

@tmeasday
Copy link
Owner

Ok, I understand. I'm not sure how to solve it, as the router doesn't invalidate when the URL changes but the template doesn't. So there's no way for the transitioner to know. Also, some people rely on this behaviour (from the router).

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