@Override
	protected String determineTargetUrl(HttpServletRequest request, HttpServletResponse response) {
		String targetUrl = this.getDefaultTargetUrl();

		targetUrl = (String) request.getAttribute(this.targetUrlAttribute);
		
		if (StringUtils.hasText(targetUrl)) {
			try {
				targetUrl = URLDecoder.decode(targetUrl, "UTF-8");
			}catch (UnsupportedEncodingException e) {
				throw new IllegalStateException("UTF-8 not supported. Shouldn't be possible");
			}
			
			return targetUrl;
		}

		return super.determineTargetUrl(request, response);
	}