Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Entwicklungsportal - ARCHIVED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
FIT-Connect
Entwicklungsportal - ARCHIVED
Commits
dfb573ee
Commit
dfb573ee
authored
1 year ago
by
Jürgen Voskuhl
Browse files
Options
Downloads
Patches
Plain Diff
Another routing fix
parent
79fba4fb
No related branches found
Branches containing commit
No related tags found
1 merge request
!86
planning#1203: Standards
Pipeline
#56497
failed
1 year ago
Stage: lint
Stage: cve-scan
Stage: build
Stage: deploy
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pages/fit-standards/index.tsx
+4
-2
4 additions, 2 deletions
pages/fit-standards/index.tsx
with
4 additions
and
2 deletions
pages/fit-standards/index.tsx
+
4
−
2
View file @
dfb573ee
...
...
@@ -26,8 +26,8 @@ import useContent from 'shared/use-content'
import
useImgPath
from
'
shared/use-img-path
'
import
LifecyclePicture
from
'
@/components/fit-standards/LifecyclePicture
'
export
default
function
({
contentsString
})
{
const
contents
:
ServiceContent
[]
=
JSON
.
parse
(
contentsString
)
const
router
=
useRouter
()
const
contents
:
ServiceContent
[]
=
JSON
.
parse
(
contentsString
)
const
filters
=
filterData
[
'
filter-it-standards
'
]
/* */
const
{
filteredServices
,
activeTagFilters
,
filterToParams
/**/
}
=
useServiceFilter
(
contents
,
router
.
query
.
filter
)
const
{
getImgPath
}
=
useImgPath
()
...
...
@@ -35,7 +35,9 @@ export default function ({ contentsString }) {
// Für Link auf Detailseite root ermitteln
const
currentPath
=
router
.
asPath
// Aktuellen Pfad holen
const
pathSegments
=
currentPath
.
split
(
'
/
'
)
// Pfad in Segmente aufteilen
const
rootFolder
=
'
/
'
+
pathSegments
[
1
]
// Der Ordnername befindet sich in pathSegments[1]
// Der Ordnername befindet sich in pathSegments[1]
const
rootFolder
=
'
/
'
+
pathSegments
[
1
]
+
(
pathSegments
[
2
]
!=
''
?
'
/
'
+
pathSegments
[
2
]
:
''
)
console
.
log
(
pathSegments
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment