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
It leads to _site/posts/posts/foo.html instead of _site/posts/foo.html
Expected behavior:
Clicking on the link for the post should lead to _site/posts/foo.html.
Actual behavior:
Clicking on the link for the post leads to _site/posts/posts/foo.html.
Cause of the issue:
The issue is caused by article-excerpt.blade.php where the link uses the legacy style of links: href="posts/{{ Hyde::formatLink($post->identifier . '.html') }}" instead of $post->getRoute, which dynamically resolves relative paths.
Possible solution:
Use $post->getRoute instead of Hyde::formatLink in article-excerpt.blade.php.
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
_site/posts/index.html
_site/posts/posts/foo.html
instead of_site/posts/foo.html
Expected behavior:
Clicking on the link for the post should lead to
_site/posts/foo.html
.Actual behavior:
Clicking on the link for the post leads to
_site/posts/posts/foo.html
.Cause of the issue:
The issue is caused by
article-excerpt.blade.php
where the link uses the legacy style of links:href="posts/{{ Hyde::formatLink($post->identifier . '.html') }}"
instead of$post->getRoute
, which dynamically resolves relative paths.Possible solution:
Use
$post->getRoute
instead ofHyde::formatLink
inarticle-excerpt.blade.php
.The text was updated successfully, but these errors were encountered: