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

fix links to support trailing slash #154

Merged
merged 2 commits into from
Oct 12, 2020
Merged

fix links to support trailing slash #154

merged 2 commits into from
Oct 12, 2020

Conversation

Enochen
Copy link
Collaborator

@Enochen Enochen commented Oct 12, 2020

If you go to https://webdev.cornelldti.org/docs/lecture3 (note the lack of a trailing slash), for example, whatever is hosting the site adds a trailing slash to the URL. This breaks local links, such as the one to the assignment page.

Note that when you navigate to a page through the sidebar, the trailing slash gets removed and all the local links work fine again.

Anyways, if you specify /docs/page rather than ./page, you don't seem to have this issue anymore.

@Enochen
Copy link
Collaborator Author

Enochen commented Oct 12, 2020

Hold on, I think this can be fixed much more easily if we somehow disable the attachment of trailing slashes. On Netlify you can disable Pretty URLs, which does this kind of thing.

@SamChou19815
Copy link
Contributor

Looks like it's blocked by facebook/docusaurus#3372

@dti-github-bot
Copy link
Member

[deployment-bot] Deployed to https://5f83afae6b2fb51850e43360--webdev-cornelldti.netlify.app.

@meganyin13
Copy link
Member

thanks Enoch!

@Enochen Enochen merged commit 3c36b5b into master Oct 12, 2020
@Enochen Enochen deleted the enoch/fix-links branch October 12, 2020 17:23
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

Successfully merging this pull request may close these issues.

4 participants