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
I was searching for the same solution and realize this is an old issue, so sorry if it's irrelevant at this point.
I found that you can use the MODX resource tag index then add the anchor tag after. IE:
pattern: oldpage
target: [[~10]]#anchorlink
In this case the target will return: /newpage/#anchorlink
I've been hoping to find a solution for the opposite as well, anchor tag in the pattern, but haven't figured that out yet.
If [[~10]] is a container resource (Settings -> Container is checked), the default suffix is appended (which is /). This will generate the slash after newpage. You can disable the Container setting or replace the trailing slash with the substring output filter (https://docs.modx.com/3.x/en/building-sites/tag-syntax/output-filters/custom#substring): [[~10:substring=0,-1]]#anchorlink
Hi
We would like to be able to redirect an old page to a new one with an anchor link. I don't think this is currently possible. e.g.
http://something.com/oldpage.html
http://something.com/newpage/#anchorlink
Please tell me I'm wrong?
Thank you
The text was updated successfully, but these errors were encountered: