Jekyll url is not applied to the View button
See original GitHub issueDescription:
Pressing the View
button in the admin panel the URL is pointing to http://localhost:4000. But I’m behind a reverse proxy called Nginx.
Tell us a bit about yourself:
- Version of JekyllAdmin I’m using: 0.10.2
- Version of Jekyll I’m using: 4.1.1
- Version of NodeJS I’m using: v14.15.0
- Operating System <e.g. OS X, Windows>: Linux!
- Browser <e.g, Safari, Chrome>: Firefox!
Steps to reproduce:
- Setup Jekyll as normal
- Configure
_config.yml
file, and seturl
key to:url: "https://yourdomain.com"
(baseurl
is just “/”) - Configure Nginx to use
yourdomain.com
as server_name in Nginx with alocation /
section containing at least:proxy_pass http://localhost:4000;
- Go to admin panel: https://yourdomain.com/admin
- Press the View button
- Links goes to
http://localhost:4000/jekyll/update/2020/11/19/welcome-to-jekyll.html
, which will NOT work.
I expected the following:
I expect the View links to take the url settings into account. The link example above, should go to:
https://yourdomain.nl/jekyll/update/2020/11/19/welcome-to-jekyll.html
But got the following, instead:
http://localhost:4000/jekyll/update/2020/11/19/welcome-to-jekyll.html
I think it shouldn’t be that hard to get this solved, I hope 👍🏽 ?
Regards, Melroy van den Berg
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top Results From Across the Web
View button links to 0.0.0.0 · Issue #460 · jekyll/jekyll-admin
Open web browser FROM ANOTHER COMPUTER on the computer public IP, edit a page, then click on the View button.
Read more >View Markdown button on posts page - Help - Jekyll Talk
I'm having trouble wrapping my head around how the Markdown button needs to create the Liquid//Kramdown in order to open the _posts/....md file ......
Read more >Github Pages jekyll not loading CSS when using custom domain
The problem is, as always, that the CSS path is not set correctly. If you use a custom domain, then please run locally...
Read more >How To Control URLs and Links in Jekyll - DigitalOcean
In Part 3 of this series, we look at how Jekyll creates URLs and show how to change the pattern for an individual...
Read more >Exploring Jekyll Basics via a Blog | go-go gh-pages! - evanwill
“Repository name”, since this will be your new example blog and be part of the URL, think a bit about what you want...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this has been brought up a few times I believe, and I have yet to see an official response. I was able to get this working on my personal fork, however I do not believe my method (hijacking the
URLable
library to look for a special Jekyll config param) is necessarily a good answer for this project.you can see my personal hack at this commit:
lib/jekyll-admin/urlable.rb
… then on my Jekyll install:
_config.yml
this got things working for me 👍
I would approve a tested Pull Request that proposes use of
JekyllAdmin.site.config["jekyll_admin"][key]
instead.