-
Notifications
You must be signed in to change notification settings - Fork 4
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
Wrong __DIR__ variable #2
base: master
Are you sure you want to change the base?
Conversation
The default folder '/var/www' was just '/var' so the plugin did not work at all.
So this still works if the folder is more than one level deep? |
As far as I can understand it does. I should have maybe clarified a little more from the beginning.
With this pull, I can download test.txt simply by adding the following to my index.md file in the 'content/download' folder: <a href="test.txt">Download test.txt</a> If I understand your question correctly, I can go one level deeper. So I created the folder The link now is <a href="deept/test.txt">Download test.txt</a> That seems to work correctly. |
Are you not using the |
No not all. If I understood correctly:
Unless you simply mean the index.md file in the 'download' folder. If I do that, as in the above example, The URL in the browser produces:
Which of course results in a 404 error. |
Yeah, you would use What I am asking is, what happens when you link to a file that you don't want to download in your markdown? You should want the path to be With this PR, what happens if you do <a href="index">Homepage</a> In your markdown file now? |
Ok, as a test I added the line:
to when clicking the link nothing happens. The URL is simply |
Ok that wasn't really what I was going for. How about create What I am saying is that all links, that you want to trigger a download, should begin with |
Ok created the The result was: The requested URL /index was not found on this server. |
Do you not have a file called index.md in your content folder?
|
|
The default folder '/var/www' was just '/var' so the plugin did not work at all.