-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Bewildering 404 #1317
Comments
That's a long story to talk about it, well, for the non-index markdown you shouldn't omit the
|
Since the ikiwiki system I'm migrating from had URLs like: https://webconverger.org/blog/2014/Webconverger_24_release/ (by default) I guess I need to add frontmatter to all my .md files, to keep my permalinks (aka URLs) consistent? Tbh I don't like the superfluous .html default. |
Have you tried Webconverger_24_release/index.md? |
Do you actually care about the links with relative path? Well after #1298 we do not need to worry about these. Perhaps we can add a new option and redirect all the |
I don't think I use relative links in my markdown. I always link I am NOT especially fond of the Webconverger_24_release/index.md suggestion. I think the index.md creates at least to me, clutter. Furthermore now info that should be in the filename imo, is in the folder name. Perhaps I am missing some advantage? I don't keep any images (or other static content) alongside posts anymore, but if I did, I guess that is one advantage perhaps? |
vuepress/packages/@vuepress/core/lib/app/redirect.js Lines 1 to 21 in d206d44
It seems that vuepress is able to hangle the redirect...... I don't know why it isn't. @ulivz Can you provide some explanation? |
|
So I need not rename files IIUC? Just update? Thank you, |
The PR has been merged but a version has not been released yet. You need to wait for vuepress v1.0.0-alpha.40. No need to rename any files. 😄 |
Now you can use plugin-clean-urls if you want your urls to be
or even
|
I think I like trailing slash since that's the default on most systems iirc. |
Just deployed 40 on https://beta.webconverger.org/blog/2014/webconverger_24_release.html and now it's working. However the Edit this page link is not pointing to the branch "vuepress" that it originated from. New bug or am I missing something? |
@kaihendry That is because you use markdown with extension I think you can change your extensions or open a feature request of supporting more extensions. |
I've already renamed them in the vuepress branch https://github.com/webconverger/wiki/edit/vuepress/blog/2014/Webconverger_24_release.md The problem is, it's Edit page is pointing to wrong branch. |
We have a |
Thanks @shigma that works.. but not on pages like: https://beta.webconverger.org/maintenance/ Not where this README.md source comes from. |
Bug report
yes, though I asked a question with video on discord already too
Version
^1.0.0-alpha.39
Steps to reproduce
What is expected?
https://beta.webconverger.org/iso redirects to https://beta.webconverger.org/iso.html and renders
https://beta.webconverger.org/blog/2014/webconverger_24_release should render by the same logic
What is actually happening?
https://beta.webconverger.org/blog/2014/webconverger_24_release is a 404 after seemingly rendering
Other relevant information
https://beta.webconverger.org is on netlify
The text was updated successfully, but these errors were encountered: