Skip to content
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

permalink setting doesn't work #903

Closed
Youdaman opened this issue Oct 5, 2018 · 6 comments
Closed

permalink setting doesn't work #903

Youdaman opened this issue Oct 5, 2018 · 6 comments

Comments

@Youdaman
Copy link

Youdaman commented Oct 5, 2018

Version 0.14.4

Repro steps:

---
title: Hello World
permalink: /hello-world
---

Hello!

Expected:

  • see that page above at the permalink specified

Actual:

Also happens when trying the permalink setting in .vuepress/config.js

Also vuepress build generates hello.html still.

Also a link on the permalinks docs page (see ":regular" definition) is 404:

Permalink generated by VuePress by default, for implementation see here

(links to https://github.com/vuejs/vuepress/blob/next/packages/%40vuepress/shared-utils/lib/fileToPath.js)

@ulivz
Copy link
Member

ulivz commented Oct 6, 2018

What you read is the documentation of VuePress 1.x, and VuePress starts to support permalinks from 1.x, but you're using 0.x.x

And we have mentioned it at two different positions:

1

image

2

image

To conclude, you should install VuePress via yarn install vuepress@next

@ulivz ulivz closed this as completed Oct 6, 2018
@Youdaman
Copy link
Author

Youdaman commented Oct 6, 2018

You need to update the docs then!

When you press the big green "Get Started" button on the home page, it takes you to the Introduction page of the docs, and then the next page is Getting Started:

https://vuepress.vuejs.org/guide/getting-started.html#global-installation

It does not specify vuepress@next -- and the instructions on the home page are below the fold, and many users would click the big green call to action and find the incorrect instructions like I did.

@ulivz
Copy link
Member

ulivz commented Oct 7, 2018

Thanks for the feedback, I just added some compatibility notification at the 1.x website. you can refresh the SW to see it soon.

@Assassyn
Copy link

Assassyn commented Nov 28, 2018

I am running on 1.0.0.24 and Permalinks does not work for me as well.

@ulivz
Copy link
Member

ulivz commented Nov 29, 2018

@Assassyn Please create an reproduction repo instead of mentioning here.

@hyvyys
Copy link

hyvyys commented Feb 12, 2020

For anyone having this issue: in my case, it seems I need to restart the dev server anytime I change a single permalink... As I do whenever I create a new scoped style. Talk about hot-reloading. Maybe I have a webpack issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants