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

Personalize the URL #25

Open
emerchan opened this issue Dec 16, 2014 · 4 comments
Open

Personalize the URL #25

emerchan opened this issue Dec 16, 2014 · 4 comments

Comments

@emerchan
Copy link

Hello, How I can personalize the URL that is showing, for example now takes the URL http://localhost:3000/ but I want http://localhost:3000/posts/sdakjhsda7s6dajwew6
Also, How I can change the buttons to just icons

Thanks

@Ethaan
Copy link

Ethaan commented Dec 18, 2014

Also im trying to personalize the url, do you find a solution @emerchan ?

@queso
Copy link
Member

queso commented Dec 18, 2014

Just set the url as part of the data context for the template.

See https://github.com/meteorclub/shareit/blob/master/client/views/twitter/twitter.coffee#L35

@BradRyan
Copy link

BradRyan commented Jul 1, 2015

This isn't working for me, but perhaps I understood wrong. I set url to return with the current data object in iron route so that this.url within the page returns my custom url. The shareit buttons still yield the current page url. Not sure where I'm going wrong.

@BradRyan
Copy link

BradRyan commented Jul 1, 2015

Nevermind. I hadn't set url in the shareData object that I was returning to the shareIt template. I was under the impression it would automatically use it if it was provided in the data context. Working now!

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

4 participants