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

page.url not working #181

Closed
StefanLiebenberg opened this Issue Jun 24, 2010 · 4 comments

Comments

Projects
None yet
3 participants
@StefanLiebenberg

StefanLiebenberg commented Jun 24, 2010

the "page.url" variable returns "/index.html" from anywhere on my site. Shouldn't it return "/about/index.html" if I was on that page?

@mojombo

This comment has been minimized.

Contributor

mojombo commented Jun 25, 2010

This appears to be working fine for me in Jekyll 0.6.1. What version are you on, and is the source of your site public so I can investigate?

@StefanLiebenberg

This comment has been minimized.

StefanLiebenberg commented Jun 25, 2010

I upgraded to 0.6.1 and still experience this issue... and i don't have my source public.

It seems {{ page.url }} returns the right url, but only relative to the folder in which that file is...

for example:
/about/index.html => /index.html
/about/other.html => /other.html

@StefanLiebenberg

This comment has been minimized.

StefanLiebenberg commented Jun 25, 2010

I changed lib/jekyll/page.rb:93 to

"url" => File.join( @dir, self.url),

it is dirty but it got the results I wanted

@mojombo

This comment has been minimized.

Contributor

mojombo commented Jun 25, 2010

Fix page.url to include full relative path. Closed by f35d287.

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.