Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from thenitai/thenitai-patch-getRootURL
Browse files Browse the repository at this point in the history
Fixed error message when accessing with /bluedragon/administrator/
  • Loading branch information
thenitai committed Feb 19, 2016
2 parents b60c65e + 723dad7 commit 9051adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluedragon/administrator/Application.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
</cfif>

<cfif !getPageContext().getRequest().getRequestURI() contains "login.cfm">
<cfset session.targetUrl = getPageContext().getRequest().getRootURL().toString() & getPageContext().getRequest().getRequestURI()>
<cfset session.targetUrl = getPageContext().getRequest().getContextPath() & getPageContext().getRequest().getRequestURI()>
</cfif>
<cflocation url="#contextPath#/bluedragon/administrator/login.cfm" addtoken="false" />
</cfif>
Expand Down

0 comments on commit 9051adc

Please sign in to comment.