Topic on Project:Support desk

How can I change where my logo links to?

4
Jer Hughes (talkcontribs)

I changed MediaWiki:Mainpage to "Main Page#Intro" so clicking on "Main page" in the sidebar takes you to the intro section. Now I'd like the logo to link to that intro section too.

Fokebox (talkcontribs)

At least you can make redirect from the Main page to mainpage/intro

Jer Hughes (talkcontribs)

I've actually deleted my "Main Page" and changed my MediaWiki:Mainpage to "Topic#Intro" (with topic being the main topic of my wiki). #Intro doesn't actually exist on the page, but I run some javascript so if the user has "Topic#Intro" in the url, then an introductory section is shown at the top of the page (basically acting as the homepage).

This Topic#Intro page loads when the user just types my domain name: example.com and when the user clicks "Main page" in the sidebar. In times when people follow a link to just [ [ topic ] ] the page acts and appears like every other article page. All of that is great, but I'd like to make the logo link load the Topic#Intro too.

AhmadF.Cheema (talkcontribs)

According to this, the link-URL of the site-logo also depends on MediaWiki:Mainpage. Maybe there is a cache issue on your end.

Update: Just tested it myself, the link-URL of the site-logo does change with MediaWiki:Mainpage,

but for some reason, when including the "#" symbol on the MediaWiki:Mainpage link, although the sidebar "Main page" presents the correct link - the logo link-URL skips the portion from the "#" symbol (i.e. "Topic#Intro" becomes "Topic").