Favicon Redirets to root folder on offline site #7986
Replies: 5 comments 5 replies
-
In order to help you better, we need more information about your setup. Could you provide us with a minimal reproduction? PS: Material for MkDocs only lives because @squidfunk has wonderful sponsors. If you use Material for MkDocs in a company, please consider sponsoring @squidfunk. That way he can continue to maintain the project and develop great stuff. He is currently working on fundamental work. |
Beta Was this translation helpful? Give feedback.
-
@guitarguy1685, when you write "the offline version", do you mean you have built it for offline use? |
Beta Was this translation helpful? Give feedback.
-
In the html mkdocs renders it this way
if I manually replace the "." with "index" on |
Beta Was this translation helpful? Give feedback.
-
so probably not the correct way to do this, but I was able to fix it with a java script in my override main.html file using this
|
Beta Was this translation helpful? Give feedback.
-
I'm locking this discussion because two team members asked for a minimal reproduction, including a link to our documentation how to create one, that was never provided. Instead, noise was added and multiple seemingly unrelated answers were given, adding to the confusion. This binds a lot of our precious time. I'm sorry to say, but I'm sick of this. This is your first warning. |
Beta Was this translation helpful? Give feedback.
-
1st off, this mkdocs-materials is amazing, thanks so much for all of this.
![image](https://private-user-images.githubusercontent.com/77162387/411253282-21bd9bea-cba9-4ef8-81c8-ee59fcf2777c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTkxOTIsIm5iZiI6MTczOTYxODg5MiwicGF0aCI6Ii83NzE2MjM4Ny80MTEyNTMyODItMjFiZDliZWEtY2JhOS00ZWY4LTgxYzgtZWU1OWZjZjI3NzdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDExMjgxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4NzA3YzRkMzZmY2FjYTQ4N2E2ZjMzZjNiNWU3MmQwMjRhMDlmNjExYWNmNTQxZjVkNzQ4YTBmZDdmNTZhMjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7vs6DRe4T5S5GlJSvNcOw3ocsuYhYFuYfKTlLgEsLXQ)
So far everything is working perfectly, but I noticed that when I click on the logo, instead of taking me to the home page it takes me to the root folder. This only happens when viewing the offline HTML.
I plan to save this on my company server, so this is how it will function there as well. I want the icon to take me to the home page. When viewing this on Netlify it works just fine, not sure why the offline version takes me to the root.
Beta Was this translation helpful? Give feedback.
All reactions