hafiz ali
hafiz ali

Reputation: 1446

Meteor absolute URL

For absolute URL my code is as following:

Meteor.absoluteUrl() + 'listing/' + listing._id

but when I try with the same using the same template on my homepage I am getting undefined.

what can I do abt it?

Upvotes: 2

Views: 1953

Answers (1)

Lucas Blancas
Lucas Blancas

Reputation: 561

Meteor Absolute URL Documentation describes usage and path after the ROOT_URL is the first parameter to the Meteor.absoluteUrl method.

I think you method call should be Meteor.absoluteUrl('listing/' + listing._id)

Upvotes: 3

Related Questions