Skip to content

Commit

Permalink
One more tweak for #80.
Browse files Browse the repository at this point in the history
  • Loading branch information
hcayless committed Nov 13, 2021
1 parent 59d7bba commit 20ffe08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pn-dispatcher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>info.papyri</groupId>
<artifactId>pn-dispatcher</artifactId>
<packaging>war</packaging>
<version>1.1.12</version>
<version>1.1.13</version>
<name>pn-dispatcher</name>
<url>https://maven.apache.org</url>
<pluginRepositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,9 @@ private String generateLink() {
String startURL = url.toString().substring("https://papyri.info".length());
String sh = getHighlightString();
String sq = getSolrQueryString();
String fullURL = (startURL + sh + sq).length() < 2000 ? startURL + sh + sq : (startURL + sq).length() < 2000 ? startURL + "?" + sq.substring(1) : startURL;
String fullURL = (startURL + sh + sq).length() < 2000 ? startURL + sh + sq :
(startURL + sq).length() < 2000 ? startURL + "?" + (sq.length() > 0 ? sq.substring(1) : "") :
startURL;
return fullURL;

}
Expand Down

0 comments on commit 20ffe08

Please sign in to comment.