Skip to content

When developing locally, Jekyll's latest version is not using localhost for site.url #8541

@ravgeetdhillon

Description

@ravgeetdhillon
  • I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages
  • I ran jekyll doctor to check my configuration
  • I read the contributing document at https://jekyllrb.com/docs/contributing/

My Environment

Software Version(s)
Ubuntu 20.04
jekyll 4.2.0
github-pages No

Expected Behaviour

When developing locally, Jekyll should use localhost:port for site.url and absolute_url filter, rather than the url provided in _config.yml.

Current Behavior

I just upgraded my website to use Jekyll v4.2.0.

This is my _config.yml

url: https://example.com

Now when I do bundle exec jekyll serve or jekyll serve, my site.url and absolute_url use the https://example.com.

Before upgradation, everything was running super fine.

Code Sample

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions