sphinx-immaterial icon indicating copy to clipboard operation
sphinx-immaterial copied to clipboard

Language switch to currently opened page

Open gospodima opened this issue 9 months ago • 5 comments

Hello,

Thank you for maintaing this repo

I would like to make an adjustment to the language switch functionality so that it redirects to the currently opened page instead of some default page.

From what I can see, the only option currently available to implement this is by adding href="{{ pathto(alt.link + pagename) }}" to header.html. And this is only possible by copying and overwriting header.html template.

Is there a solution that doesn't require overwriting the entire header template?

gospodima avatar May 03 '24 12:05 gospodima