package org.grails.main.model

import groovy.transform.CompileStatic

@CompileStatic
class Profile implements ProfileHtml {
    String title
    String href
    String docsHref

    String getSlug() {
        title?.replace(' ', '-')?.toLowerCase()
    }

    String getHref() {
        "profiles/${slug}/index.html"
    }
}

package org.grails.main.model

import groovy.transform.CompileStatic

@CompileStatic
class Profile implements ProfileHtml {
    String title
    String href
    String docsHref

    String getSlug() {
        title?.replace(' ', '-')?.toLowerCase()
    }

    String getHref() {
        if ( this.href == null ) {
            return "profiles/${slug}/index.html"    
        }
        this.href
    }
}

Fix link to third party profiles
Fix link to third party profiles
