You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using zola serve -i a.b.c.d (where a.b.c.d is the server's public IP) pages should have links which do not include the server IP, like href="/blog", or at worst, href="http://a.b.c.d/blog.
Current Behavior
instead, I see: href="http://127.0.0.1/blog which is a broken link when I access the URL from a different computer. (Which is the point of using the -i switch.)
fadedbee@box ~ $ curl http://a.b.c.d:1111/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MyBlog</title>
</head>
<body>
<section class="section">
<div class="container">
<h1 class="title">
This is my blog made with Zola.
</h1>
<p>Click <a href="http://127.0.0.1:1111/blog/">here</a> to see my posts.</p>
</div>
</section>
<script src="/livereload.js?port=1024&mindelay=10"></script></body>
</html>
Step to reproduce
Run zola serve -i a.b.c.d and look at the broken link(s) which are generated, pointing at 127.0.0.1, despite -i.
The text was updated successfully, but these errors were encountered:
I had quickly looked at the code, and saw that the path — here, '/blog' — wasn't removed, but the port was added after, which was strange (cfr. my last post in the other issue). Maybe it's stripped later, but I haven't investigated that far.
Bug Report
Environment
Zola version: 0.17.2
Expected Behavior
When using
zola serve -i a.b.c.d
(where a.b.c.d is the server's public IP) pages should have links which do not include the server IP, likehref="/blog"
, or at worst,href="http://a.b.c.d/blog
.Current Behavior
instead, I see:
href="http://127.0.0.1/blog
which is a broken link when I access the URL from a different computer. (Which is the point of using the-i
switch.)Step to reproduce
Run
zola serve -i a.b.c.d
and look at the broken link(s) which are generated, pointing at 127.0.0.1, despite-i
.The text was updated successfully, but these errors were encountered: