Skip to content

Commit

Permalink
Merge pull request #33 from georchestra/georchestra-favicon
Browse files Browse the repository at this point in the history
feat: set favicon to root
  • Loading branch information
fvanderbiest authored Dec 10, 2023
2 parents 3977e7f + 4afa74d commit 56d8105
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title wicket:id="pageTitle">GeoServer</title>
<link href="#" rel="shortcut icon" wicket:id="faviconLink"/>
<link href="#" rel="shortcut icon" href="/favicon.ico"/>
<wicket:link>
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection" />
</wicket:link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import org.apache.wicket.model.LoadableDetachableModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.StringResourceModel;
import org.apache.wicket.request.cycle.RequestCycle;
import org.apache.wicket.request.http.WebResponse;
import org.apache.wicket.request.mapper.parameter.INamedParameters.Type;
import org.apache.wicket.request.mapper.parameter.PageParameters;
Expand Down Expand Up @@ -127,11 +126,13 @@ protected void commonBaseInit() {
}

// favicon
/* Overriding default geoserver behavior and implement georchestra root favicon
* directly in html to allow custom scripts overriding more easily
if (faviconReference == null) {
faviconReference = new PackageResourceReference(GeoServerBasePage.class, "favicon.ico");
}
String faviconUrl = RequestCycle.get().urlFor(faviconReference, null).toString();
add(new ExternalLink("faviconLink", faviconUrl, null));
add(new ExternalLink("faviconLink", faviconUrl, null));*/

// page title
add(
Expand Down

0 comments on commit 56d8105

Please sign in to comment.