Custom Theme Can't Load Default Overview


#1

I am working to create a custom theme and following this guide:
https://developer.atlassian.com/cloud/confluence/create-a-confluence-theme/

The difference is that I DO NOT want to “Override the space home page”. I’ve left routeOverride as false, but still the default overview page won’t load (continuous spinning).

If I look in the console I see the following:
Failed to load resource: the server responded with a status of 404 (Not Found)

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /space/DOC</pre>
</body>
</html>

I have the following in my atlassian-connect.json:

{
    "key": "my-add-on",
    "name": "Ping Pong",
    "description": "My very first add-on",
    "vendor": {
        "name": "Angry Nerds",
        "url": "https://www.atlassian.com/angrynerds"
    },
    "baseUrl": "{{localBaseUrl}}",
    "links": {
        "self": "{{localBaseUrl}}/atlassian-connect.json",
        "homepage": "{{localBaseUrl}}/atlassian-connect.json"
    },
    "authentication": {
        "type": "jwt"
    },
    "lifecycle": {
        "installed": "/installed"
    },
    "scopes": [
        "READ"
    ],
    "modules": {
        "confluenceThemes": [
            {
                "key": "my-first-theme",
                "routeOverride": false,
                "availableGlobally": true,
                "icon": {
                    "width": 110,
                    "height": 70,
                    "url":"/icon.png"
                },
                "name": {
                    "value": "Hello World Theme"
                },
                "description": {
                    "value": "My first Connect theme."
                },
                "routes": {
                    "spaceview": {
                        "url": "/space/{space.key}"
                    }
                }
            }
        ]
    },
    "apiMigrations": {
        "gdpr": true
    }
}

#2

I’ve been able to recreate this even with a very basic setup. Can anyone confirm on there end, and if this is a bug where can I submit that?


#3

I’ve been able to replicate the issue and it does seem routeOverride is not working as described in the documentation you linked. Having said that, I’ve raised CONFCLOUD-65593 on your behalf for the team to look into. Feel free to add additional comments as you deem necessary.

Cheers,
Ian