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

Files path are changed #45

Open
D4nte opened this issue Jun 10, 2022 · 2 comments
Open

Files path are changed #45

D4nte opened this issue Jun 10, 2022 · 2 comments
Assignees
Labels
question Further information is requested
Milestone

Comments

@D4nte
Copy link

D4nte commented Jun 10, 2022

I have a file with the following path: docs/main/choose_content_topic

In another file, I added a link to this file: /docs/main/choose_content_topic.

However, this returns a 404. I can see that I need to use /docs/main/choose-content-topic to access the file (hyphens instead of underscores).

Expected: path to files are not changed by the framework

@amirhouieh
Copy link
Contributor

I assume by the path to files you mean using the name of the file as it is for the url path. This is the case however this difference is in slugifying the file names that we have to do. Otherwise, we will have a problem with a situation in which the file name contains spaces or special characters e.g; Choose content by @their tags #2.md.

That's why we normalize all the incoming filenames and folder names.

@amirhouieh amirhouieh self-assigned this Jun 15, 2022
@amirhouieh amirhouieh added the question Further information is requested label Jun 15, 2022
@D4nte
Copy link
Author

D4nte commented Jun 17, 2022

@amirhouieh then it may worth slugifying the local links in the mardown files too?

@amirhouieh amirhouieh added this to the v0 milestone Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

2 participants