Is there a way to specify only the latest part of the url in href links? #4217
              
                Unanswered
              
          
                  
                    
                      frederikhors
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments 5 replies
-
| 
         There is no way.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    5 replies
                  
                
            -
| 
         You could use a relative href Warning: If the ID changes for some reason, it won't be reflected until the dynamic part of the URL is updated  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I'm in
players/<PLAYER_ID>/settings/__layout.svelteand I need two more nested pages:/profilein/players/[PLAYER_ID]/settings/profile.svelte/notificationsin/players/[PLAYER_ID]/settings/notifications.svelte.In
__layout.svelteI have the links:Is there a way to avoid all the links in that
href?Something like
/notificationsonly?Beta Was this translation helpful? Give feedback.
All reactions