/** * Returns the URL path for this HistoryToken, that can be parsed by {@link HistoryTokenFactory#parseURL(String)} * <p> * This URL path includes the application context. */ @Override public String toString() { final String url = pattern.printURL(state); final String context = Navigation.getAppContext(); if (!context.isEmpty() && !url.startsWith("/")) { return context + "/" + url; } else { return context + url; } }
/** * Returns the URL path for this HistoryToken, that can be parsed by {@link HistoryTokenFactory#parseURL(String)} * <p> * This URL path includes the application context. */ @Override public String toString() { final String url = pattern.printURL(state); final String context = Navigation.getAppContext(); if (!context.isEmpty() && !url.startsWith("/")) { return context + "/" + url; } else { return context + url; } }