We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42428
    • 6 Posts
    I'm attempting to link to another site from the main navigation on my Modx Revolution 2.2.13-pl site.

    I tried to create a weblink resource, but it simply loads up a page with the URL in the content of the page, then redirects to the homepage as if you had hit a 404 that did not exist.

    Can anyone chime in on how to properly create a weblink in Modx?

    Thanks!
    • Put the full URL to the remote page.
      http://google.com
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 42428
        • 6 Posts
        Quote from: sottwell at Jan 31, 2015, 01:20 AM
        Put the full URL to the remote page.
        http://google.com


        I am using a full URL.

        Thanks,
        Chris
          • 3749
          • 24,544 Posts
          Are you using nothing but the URL (no HTML at all).

          I just tried it and this worked fine for me as a Weblink page:

          Template: BaseTemplate
          Pagetitle: Google
          MenuTitle:Google
          alias: google
          Weblink: http://google.com


          A link to this page in a Wayfinder menu or anywhere else will take you to Google when clicked on. Clicking on "View" when editing the page should also take you to Google.com.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 5904
            • 58 Posts
            Hi all, I'm seeing an issue when a weblink is created in a container, such as 'Products'.

            For example, I've created a weblink with Resource Alias set to 'bioslim' (the alias of the defunct product, without the quotes) and set the Weblink field to the id of the new product, eg [[~474]]

            So far I'm just seeing 404s. However, if the weblink is moved in the site tree to directly under the root it works as expected.

            Any suggestions very welcome. Thanks in advance!
              • 5904
              • 58 Posts
              Quote from: craigphiz at Apr 15, 2015, 03:40 PM
              Hi all, I'm seeing an issue when a weblink is created in a container, such as 'Products'.

              For example, I've created a weblink with Resource Alias set to 'bioslim' (the alias of the defunct product, without the quotes) and set the Weblink field to the id of the new product, eg [[~474]]

              So far I'm just seeing 404s. However, if the weblink is moved in the site tree to directly under the root it works as expected.

              Any suggestions very welcome. Thanks in advance!

              Ah! I've realised now that the Resource Alias needs to be set to 'products/bioslim' for it to work.