user3594721
user3594721

Reputation: 119

Iron Router pathFor='/' does not work

Iron Router pathFor does not work when looking for route '/' or ''.

I'm trying to create a link to homepage here but it does not seem to accept that route. Routing is set properly and works properly by entering it.

Is there a special pathFor for homepages?

Upvotes: 0

Views: 466

Answers (2)

ChangJoo Park
ChangJoo Park

Reputation: 979

if @user3594721 make spacebars

{{pathFor "/"}}

it is wrong, and check inside Router method. also you don't have route for homepage (or root page), make route for homepage

change

{{pathFor "/"}}

to

{{pathFor "something you typed name of homepage"}}

Upvotes: 0

waitingkuo
waitingkuo

Reputation: 93784

You should pass the name of the route as the parameter. Take a look at here

Upvotes: 1

Related Questions