follow url

16 views
Skip to first unread message

Андрей Клаус

unread,
Jan 23, 2014, 7:44:48 AM1/23/14
to sam...@googlegroups.com
Hello guys,

I'm a newbe in sammyjs. Sammy is a cool thing!

I have small tech problem.

my routing is similar to one below :

                    Sammy(function() {
                        this.get('#:itemId', function() {
                            //I add default tab to url here, so, after changeLocation we will have '#itemId/tabId' and will go to next route
                            self.changeLocation(this.params.itemId, tabs[defaultTab].id, true)
                        });

                        this.get('#:dealId/:tabId', function() {
                            var dealId = this.params.itemId;
                            var tabId = this.params.tabId;
                            self.readDealFromServer(itemId, function() {
                               self.activateTab(tabId)
                             })
                        });
                       
                        this.get('', function() { self.createEmptyItem() });
                    });

So, rather simple and straightforward. But want I need is just go by link /user/index. And I cant... what should I do to allow moving by links to other pages then current?


Thank you for all your work guys.

Thanks,
Andrey.
Reply all
Reply to author
Forward
0 new messages