Skip to content

Wording of 404static.xhtml is not generic #12183

@JeyaSam

Description

@JeyaSam

Hi!
Creating this as a follow-up from https://dataverse.zulipchat.com/#narrow/channel/378866-troubleshooting/topic/404static.2Exhtml.20file . 404static.xhtml file introduced in v6.0 is not generic and contains harvard specific link and text:

Image

So, we suggest following changes to 404static.xhtml to make it more generic:

  1. Remove following code snippet as it is Harvard specific:


    Copyright © 2023, The President & Fellows of Harvard College | Privacy Policy


  2. In the file, #{bundle['footer.dataverseProject']} is used for Header. Instead can use #{bundle['dataverse']}:
    Reference to code:


    <h:outputFormat class="navbar-brand custom-logo" value="#{bundle['footer.dataverseProject']}"/>

  3. The logo image at the bottom could be specified as "./resources/images/dataverseproject_logo.png" instead of "https://cdn.rawgit.com/IQSS/dataverse/develop/src/main/webapp/resources/images/dataverseproject_logo.png" .
    Some installations like us may face CSP restriction to have external link references as shown below:

Image

The missing alert-danger spec for error message is also due to this external reference URL of bootstrap.min.css and bootstrap-theme.min.css in 404static.xhtml file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions