Skip to content

Commit

Permalink
small tweak for server-side js
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Nov 2, 2023
1 parent f6f1c0b commit 356d2d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public String getCallerTemplateName() {
}

public String getTemplateName() {
return wrapped.getTemplateData().getTemplate();
String name = wrapped.getTemplateData().getTemplate();
return name.startsWith("/") ? name.substring(1) : name;
}

public void setRedirect(boolean redirect) {
Expand Down

0 comments on commit 356d2d1

Please sign in to comment.