Skip to content
Snippets Groups Projects
Commit 9cd10e66 authored by Jaden Diefenbaugh's avatar Jaden Diefenbaugh
Browse files

rm possible hash at end of url

parent 754bd176
No related branches found
No related tags found
1 merge request!223Reports overhaul
...@@ -43,7 +43,7 @@ angular.module('reportApp').factory('UrlService', [function(){ ...@@ -43,7 +43,7 @@ angular.module('reportApp').factory('UrlService', [function(){
const extractUsingCurrentUrl = () => { const extractUsingCurrentUrl = () => {
const url = $.ajaxSettings.url; const url = $.ajaxSettings.url;
const idxSplit = url.indexOf('reports'); const idxSplit = url.indexOf('reports');
const path = url.slice(idxSplit); const path = url.slice(idxSplit).replace(/#\/?$/, '');
prefix = url.slice(0, idxSplit); prefix = url.slice(0, idxSplit);
// find how many '/' are in path via splitting str on '/' // find how many '/' are in path via splitting str on '/'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment