-
Notifications
You must be signed in to change notification settings - Fork 57
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
Bug: Underscores in Nav Menu Change Link Names #91
Comments
The bug here isn't the underscore, it's the "index.html" (which we are doing a global search and replace for). So, for example if you changed the name of the page to articles.html or articles_listing.html then it would work fine. Will certainly fix the underlying bug but wanted you to also know what the workaround would be. |
Thanks @jjallaire for the details and explanation. At least I know not to call anything other pages |
I have opened an issue in RStudio IDE for this. I believe the issue really there. I'll close this and we can all follow for a fix there. Thanks for the report |
In fact it is indeed something coming from distill distill/inst/rmarkdown/templates/distill_article/resources/distill.html Lines 1304 to 1309 in 84e21e9
Thanks @romainfrancois ! |
When using underscores in file names linked from a navigation menu, the html page links are altered, dropping everything after the underscore.
_site.yaml navigation looks like this in part:
After the website is built, previewing in the RStudio Viewer pane and clicking on the relevant navigation bar link results in error:
If the "Open in Browser" link is clicked and the website opens in a new Firefox tab, the link works and the correct
articles_index.html
file is loaded.Initially, I thought everything was fine and the error was just somehow in the RStudio Viewer pane. However, when the website is deployed to Netlify, the error returns. In fact the file linked from the navigation menu is simply
websiteurl.com/articles_./
I would link to the website, which is new and likely has zero traffic at the moment, but perhaps by the time you read this I will have fixed the error by renaming files without underscores!
If required, the website repository is at:
https://gitlab.com/phillc73/goodinplaces-website
The text was updated successfully, but these errors were encountered: