• Resolved mvarela

    (@mvarela)


    We are using the WordPress My-Account function to manage profiles. When the shortcut is placed in a tab, the “Edit Addresses” and “Edit Payment Methods” links get changed incorrectly to an unknown page, throwing a 404 error. The Correct link below is from the My-Account shortcut NOT in a tab, and the Incorrect link is what’s generated using the same My-Account shortcut when placed in a Tab:

    Correct link: https://www.####.com/my-account/edit-address/billing/

    Incorrect link: https://www.####.com/edit-address/billing/?p=23420

    I have looked at the permalinks, and have exhausted all other options. Does anyone have any ideas what may be happening with this?

    Thanks in advance,
    Manny

    The page I need help with: [log in to see the link]

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter mvarela

    (@mvarela)

    Hi @balram19,

    No worries. I modified a few lines of code in two WC PHP files and was able to bypass the errant default links. All is working now…thanks.

    Manny

    Hi @mvarela,

    Glad that your issue has been resolved. If you like our plugin please rate us.

    Thanks

    Thread Starter mvarela

    (@mvarela)

    Hi @balram19,

    I temporarily solved this problem only by modifying the Woocommerce dashboared.php and edit-address.php templates – hardcoding the URLs.

    However, this is not the ideal way to solve the problem. Somehow, from within a Tab, the %1$s, %2$s, and %3$s variables (dashboard.php), and the esc_url() function (edit-addresses.php) contain and/or are producing the wrong link address. They produce the correct links when not in a Tab. Something in Tabs is incorrectly manipulating these links when adding the “/?p=23420” to the end of the string.

    Manny

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Invalid URLs created for WP-Admin within a Tab’ is closed to new replies.