Title: &#8216;View Post&#8217; button does not open expected URL
Last modified: October 3, 2018

---

# ‘View Post’ button does not open expected URL

 *  Resolved [cag8f](https://wordpress.org/support/users/cag8f/)
 * (@cag8f)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/view-post-button-does-not-open-expected-url/)
 * Hello. I currently have a live site at [https://www.mydomain.com](https://www.mydomain.com)
   and a private dev site at [https://www.mydomain.com/dev/](https://www.mydomain.com/dev/).
   Both are located on the same server. On my dev site, I am trying to use your 
   plugin to modify post permalinks. But I am encountering an issues. I will describe
   it.
 * I currently have a blog post with the title `blog-title`, and a permalink of `
   https://www.mydomain.com/dev/blog-title`. I would like to use your plugin to 
   ensure all blog posts have the word `blog` inserted into the permalink. So for
   example, I would like to change the permalink of my blog post to `https://www.
   mydomain.com/dev/blog/blog-title`. To do so, in Permalinks Customizer–>PostTypes
   Settings I have added `blog/%title%/` to the `Post` field ([screenshot](https://imgur.com/a/7XWVgQH)).
   I saved those settings, then opened the post in-question for editing, and clicked‘
   Regenerate Permalink’. If I then click the default `View Post` link provided 
   by WordPress ([screenshot](https://imgur.com/a/ws8qzzU)), the post opens with
   the new URL as expected (`https://www.mydomain.com/dev/blog/blog-title`). But
   if I instead click the `View Post` *button* provided by your theme ([screenshot](https://imgur.com/a/cqAu5nY)),
   then my browser tries to open a new tab with the URL `https://www.mydomain.com/
   blog/blog-title/`, and of course encounters a 404 error.
 * How can I resolve this?
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fview-post-button-does-not-open-expected-url%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/view-post-button-does-not-open-expected-url/#post-10783754)
 * Hi [@cag8f](https://wordpress.org/support/users/cag8f/)
 * Sorry about the delay in my response. I have just checked this thread.
 * I’ll give it a look of this issue and will fixed it out in coming version.
 * Thanks,
    Sami
 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/view-post-button-does-not-open-expected-url/#post-10783837)
 * [@cag8f](https://wordpress.org/support/users/cag8f/) Thanks for raising this 
   issue. Actually that’s only occurring due to having relative path in View button.
   so, it to open that URL on the main domain rather than sub-domain.
 * I have fixed this issue by adding the Full path in View URL so, it won’t happen
   again. It will be fixed for you in the upcoming release.
 * Thanks,
    Sami
 *  Thread Starter [cag8f](https://wordpress.org/support/users/cag8f/)
 * (@cag8f)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/view-post-button-does-not-open-expected-url/#post-10784160)
 * OK thanks.
 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/view-post-button-does-not-open-expected-url/#post-10815532)
 * [@cag8f](https://wordpress.org/support/users/cag8f/) Issues fixed in the latest
   version.

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

The topic ‘‘View Post’ button does not open expected URL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/permalinks-customizer_fff1d5.svg)
 * [Permalinks Customizer](https://wordpress.org/plugins/permalinks-customizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalinks-customizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalinks-customizer/)
 * [Active Topics](https://wordpress.org/support/plugin/permalinks-customizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalinks-customizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalinks-customizer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/view-post-button-does-not-open-expected-url/#post-10815532)
 * Status: resolved