I am trying to integrate a function $\hat u$ on the common surface of discontinuous finite elements. The function $\hat u$ lives in a $d-1$-dimensional space of functions defined on the element interfaces. However, the unique mapping of the interface and functions with support on the interface to a reference element is not straightforward.
Consider the interface $\partial K$ joining elements $K^\pm$. We have functions $\hat u$ defined on $\partial K$ and $u^\pm$ defined on $K^\pm$, respectively. It is necessary to compute surface integrals along $\partial K$ from the perspectives of $K^\pm$, i.e. the surface integral is computed twice - once on both element. However, I am having trouble determining the appropriate mapping from $d$-dimensional functions $u^\pm$ to $d-1$ space. Namely, should I enforce a mapping in global coordinates or reference coordinates?
My current approach is to consider a point $x$ on $\partial K$ and to determine the two points $\hat x^\pm$ on reference elements $\hat K^\pm$ that both map to $x$. In this approach, the interface has a fixed global orientation. For example, in the case of the 2-D line interface with a 1-D reference element joining two 2-D triangular elements, the $\hat x^\pm$ mapping to $x$ differ. A consequence of this scheme is that the determinants of the Jacobian are equal in magnitude and opposite in sign on $K^\pm$. However, this scheme seems to not be correct and I'm afraid this approach may be over-complicating the problem.
In particular, I am using integration rules to evaluate integrals of the form
\begin{equation} \int_{\partial K} f_h^\pm \left(\hat u, u^\pm, n^\pm \right) \cdot \mu = \sum_q f \left( \hat u(x_q), u^\pm(x_q), n^\pm \right) \cdot \mu(x_q) J w_q \end{equation}
where $\mu$ is some test function on $\partial K$, $n^\pm$ are the outward-pointing normals to $K^\pm$ and $J$ is the Jacobian of the mapping.
Is my mapping scheme correct? If not, what is the appropriate mapping scheme for, e.g., the the case where $\partial K$ is a line joining two triangles? What would $J$ be for this scheme? Some resources use the absolute value of $J$ in their description of change of variables while others do not. When the absolute value needed?