Forum Discussion
dynamic quick links to navigate in a page
I have created some pages that contains quick links that points to anchors in the page.
It makes the navigation easy.
I need to make a few of same pages but for each city we have a location.
Example: Paris, London, New York, etc.
So I copy that page using the "new - copy of this page".
The problem is that the quick links still point to the original page.
Is there a way that the will dynamically point to the current page?
belilan5770 I don't think the quick links URLs will change automatically/dynamically.
Unfortunately, you will have to edit each quick link URL manually after you create a new SharePoint site page by copying the existing site page.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- belilan5770Copper Contributorganeshsanap any other way? like wouldn't it be possible to edit the HTML of the page and correct the links from there? it would be much faster.
- SvenSieverdingBronze Contributor
HI belilan5770 ,
are you using these quicklinks to build something like a table of content?
Then you could use the "Markdown" webpart instead.
1) Copy the only the relative anchor links of your sectionsBut remove everything from that url, so that only everything after the hashtag remains. In my example I get a link like "#link~1"
2) Now add a "Markdown" webpart and enter these links in markdown format// [Title of the Link](this link) [Link to first section](#link-1)
You get something like this
This looks kind of basic, but you can style it a little bit using markdown.
But these links are relative to the current page. So if you copy the page they will be relative to the new page.
Best Regards,
Sven- belilan5770Copper Contributor
SvenSieverdingActually, I use tiles like this:
I'm not sure if I can use the markup web part in combination with the tiles?
- Rob_ElliottBronze Contributor
belilan5770 the quick links web part is totally static, there is no way to have the links changed dynamically.
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)