Title: A problem with redirection
Last modified: October 27, 2024

---

# A problem with redirection

 *  Resolved [lex17](https://wordpress.org/support/users/lex17/)
 * (@lex17)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/)
 * First of all it’s a great plugin, thank you! 🙂
   I saw that there were similar
   problems in old threads and they were supposedly solved, but I still have the
   problem with redirection exactly as described here: [https://wordpress.org/support/topic/2-bugs-redirects-to-a-post-wp-customize-fails-to-change/](https://wordpress.org/support/topic/2-bugs-redirects-to-a-post-wp-customize-fails-to-change/)
 * My problem is the same: whenever I change a theme, it redirects to a post. The
   problem occurs on the home page, archive page, tag page… The problem does not
   occur on any post page or subpages created by me.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fa-problem-with-redirection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18098899)
 * Glad to help.
 * What you describe does not happen on default WP install. But if you can provide
   basic steps to repeat the issue, it would enable me to investigate and try to
   resolve asap. Something like this will make it possible to follow along and try
   to help:
    1. Install WP
    2. Install/activate Theme Switcha
    3. Install activate only two default WP themes
    4. Click some link or do some action
    5. Etc., until the issue happens
 * Let me know if any questions about this, thank you.
 *  Thread Starter [lex17](https://wordpress.org/support/users/lex17/)
 * (@lex17)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18101467)
 * The issue occurs immediately on a fresh WP but I forgot to mention something 
   important: the issue does not occur when I select a theme from the toolbar, it
   occurs when I change the theme from a link or thumbnail created by shortcodes:[
   theme_switcha_list display=”list”] or [theme_switcha_thumbs style=”true”] It 
   always redirects to the last post visible on the page I am on.
   However, the shortcode[
   theme_switcha_select text=”Choose a theme..”] from what I see does not cause 
   any issues. But I would like to use thumbnails on my website…
    -  This reply was modified 1 year, 7 months ago by [lex17](https://wordpress.org/support/users/lex17/).
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18101482)
 * Sounds great but I still need the basic steps so I can follow along, repeat the
   issue, and try to resolve asap. Not much I can do without the steps, thank you
   for understanding [@lex17](https://wordpress.org/support/users/lex17/).
 *  Thread Starter [lex17](https://wordpress.org/support/users/lex17/)
 * (@lex17)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18103847)
 * I do exactly what you wrote in the previous post:
    1. I install WordPress.
    2. I install and activate ThemeSwitcha.
    3. I install two WP themes: “Twenty Ten” and “Dark TT”
    4. in the Widget area I add the shortcode [theme_switcha_thumbs style=”true”]
       The
       issue is there, it looks the same as on the page I linked to in the first post.
       The issue does not occur only if there are no entries in the blog… (or if I’m
       using the shortcode [theme_switcha_select text=”Choose a theme..”] ).
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18103872)
 * Okay that is very useful. Can you elaborate on Step 4, maybe break it down to
   basic steps. There is a lot going on there and I want to make sure that I am 
   following accurately, thank you.
 *  Thread Starter [lex17](https://wordpress.org/support/users/lex17/)
 * (@lex17)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18108174)
 * I go to “Appearance” – “Widgets” and on “Primary Widget Area” I add “Shortcode”.
   I click “Update” and nothing else. I don’t add anything else, I don’t have any
   other active widgets, I don’t change anything, to take as few steps as possible.
   I can even show you a screenshot from the Dashboard: [https://www.dropbox.com/scl/fi/yb9ro9ct1jsg4ubzjge33/screenshot_2024-10-31_20.46.49.png?rlkey=ogq9y3apel3vbxh4a3lrydw2q&dl=0](https://www.dropbox.com/scl/fi/yb9ro9ct1jsg4ubzjge33/screenshot_2024-10-31_20.46.49.png?rlkey=ogq9y3apel3vbxh4a3lrydw2q&dl=0)
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18108194)
 * Ok thanks that is very helpful. I will be looking into this, and in the meantime
   one thing to try: notice in your screenshot the shortcode is using curly/fancy
   quotes for the style attribute:
 *     ```wp-block-code
       [theme_switcha_thumbs style=”true”]
       ```
   
 * Try replacing the curly quotes with straight quotes like this:
 *     ```wp-block-code
       [theme_switcha_thumbs style="true"]
       ```
   
 * Basically shortcodes work best when using straight quotes for all attributes.
 *  Thread Starter [lex17](https://wordpress.org/support/users/lex17/)
 * (@lex17)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18114316)
 * Ok, thank you. I’m sure I copied the quotes correctly but I think Notepad “corrected”
   it… but correcting the quotes unfortunately did not help.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18114334)
 * Thanks I am seeing it now, it does look like a bug with that particular shortcode.
   As you mention the other shortcodes work fine. I will investigate further and
   try to resolve, thank you for reporting this [@lex17](https://wordpress.org/support/users/lex17/).
 *  Thread Starter [lex17](https://wordpress.org/support/users/lex17/)
 * (@lex17)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18160214)
 * No problem. If you find a solution let me know, if not I can live with it as 
   it is now 😉
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18376447)
 * Just to follow up with this. The redirect bug is fixed in the next version (3.4)
   of Theme Switcha, should be available later today. Thanks again for reporting,
   much appreciated [@lex17](https://wordpress.org/support/users/lex17/).
 *  Thread Starter [lex17](https://wordpress.org/support/users/lex17/)
 * (@lex17)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18442217)
 * You’re very welcome. Thanks for the update – I’ve tested it and can confirm everything
   is working perfectly now 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘A problem with redirection’ is closed to new replies.

 * ![](https://ps.w.org/theme-switcha/assets/icon-256x256.png?rev=1501320)
 * [Theme Switcha - Easily Switch Themes for Development and Testing](https://wordpress.org/plugins/theme-switcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-switcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-switcha/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-switcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-switcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-switcha/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [lex17](https://wordpress.org/support/users/lex17/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/a-problem-with-redirection/#post-18442217)
 * Status: resolved