You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the EpiSpaRouter.tsx you created a navigation component with a global click handler. This handler subscribes to all links (a tags) and based on the URL, it either opens an external page or navigates to the internal page inside SPA.
The issue is that the logic responsible for SPA navigation takes into the account only path part of the URL thus ignoring any query parameters:
// Only act if we remain on the same domain
if (targetUrl.origin === currentUrl.origin) {
newPath = targetUrl.pathname;
}
Query parameters might come in handy in many scenarios of SPA, so ignoring them seems to be quite of a problem.
The text was updated successfully, but these errors were encountered:
In the EpiSpaRouter.tsx you created a navigation component with a global click handler. This handler subscribes to all links (
a
tags) and based on the URL, it either opens an external page or navigates to the internal page inside SPA.The issue is that the logic responsible for SPA navigation takes into the account only path part of the URL thus ignoring any query parameters:
Query parameters might come in handy in many scenarios of SPA, so ignoring them seems to be quite of a problem.
The text was updated successfully, but these errors were encountered: