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

Problem in link rel=next/prev code #483

Open
sasadangelo opened this issue Jan 28, 2023 · 3 comments · May be fixed by #484
Open

Problem in link rel=next/prev code #483

sasadangelo opened this issue Jan 28, 2023 · 3 comments · May be fixed by #484

Comments

@sasadangelo
Copy link

Hi,

According to this discussion
#482

I am opening this issue because there is a bug in this code:

{% if paginator.previous_page %}
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}" />
{% endif %}
{% if paginator.next_page %}
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}" />
{% endif %}

that. generates in my website:
https://www.code4projects.net/blog/page/2/

This code:

<link rel="prev" href="https://www.code4projects.net/blog/index.html" />
<link rel="next" href="https://www.code4projects.net/blog/page/3/index.html" />

with extra index.html suffix.

@sasadangelo
Copy link
Author

Hi,
Any updates? Is there aany chance to have this problem fixed?

@ashmaroli
Copy link
Member

@sasadangelo, since you're deploying your site via GH Actions, you may patch this with the following in your Gemfile. (There is no ETA regarding when a release will be shipped with this patch).

gem "jekyll-seo-tag", github: "jekyll/jekyll-seo-tag", ref: "refs/pull/484/head"

@sasadangelo
Copy link
Author

Ok thank you. Please let me know when it will be available in a next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants