Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect the deleted skin pages into metacatui #1771

Open
taojing2002 opened this issue Jan 10, 2024 · 0 comments
Open

Redirect the deleted skin pages into metacatui #1771

taojing2002 opened this issue Jan 10, 2024 · 0 comments
Milestone

Comments

@taojing2002
Copy link
Contributor

taojing2002 commented Jan 10, 2024

We are deleting the Metacat old skins, such as knb, obfs and et al. In order to avoid 404 when people access those deleted skins, Matthew proposed to use a servlet class to centralize the re-direction of the request. The web.xml file looks like:

<filter>
    <filter-name>ErrorFilter</filter-name>
    <filter-class>edu.ucsb.nceas.metacat.ErrorFilter</filter-class>
    <init-param>
        <param-name>excludePattern</param-name>
        <param-value>/style/skins/metacatui</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>ErrorFilter</filter-name>
    <url-pattern>/style/skins/*</url-pattern>
</filter-mapping>
@taojing2002 taojing2002 added this to the 3.1.0 milestone Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant