As far as I know, this is standard behavior for drafts. I’ve used pretty permalinks on every page I’ve built, and drafts are always directed to the “ugly” URL. If you publish the post, the actual permalink will be set as expected.
Side note: When you edit the draft, you should see the actual permalink listed at the top of the page (small print, just above the title). Even clicking on that will direct you to the “ugly” link.
I suspect it’s tied to the fact that you are viewing a post preview specifically.
Related Posts:
- Does WordPress Change the .htaccess File When Updating?
- WordPress Automatic Update to 3.9.1 breaks Permalinks [closed]
- Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
- WordPress slug issue with non-latin characters
- Date based URLs for custom posts and pagination
- Archive permalinks
- Removing hierarchical pages in the permalink
- How to custom change author base without $this->front?
- Change permalinks structure for specific category
- + Character in permalink
- Custom post type by ID in root folder
- Setting a permalink for the home page?
- Permalink redirection from ‘Day and name’ to ‘Post name’
- Custom permalink structure with a prefix just for posts
- Replace WordPress %postname% suffix with %postid%?
- Move WordPress site from one domain to another
- Create slugs programmatically
- How to Remove -14 from WordPress URL (Permalink)
- WordPress 3.1 not compatible with jQuery Mobile?
- How to hook into permalink when publishing-saving post?
- Change permalink rule if category is called “uncategorized”
- Changing permalink changes stylesheet path?
- Multisite Network: How to change permalink structure programmatically on new blogs
- Get canonical link
- Custom Permalinks don’t work on local LAMP installation
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- Remove permalink settings in post for users
- enable permalinks in window hosting
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Redirect parent taxonomy to it’s child
- WordPress Permalinks still not working despite all necessary settings
- RewriteRule accepts numbers but not letters in tag
- Avoid WordPress categorizing a permalink request as Not found 404 Page
- Pages not using permalink
- How to find the post_id of a post on a wordpress blog that uses pretty URLs?
- Redirects after permalink change
- How do I change the permalink of a scheduled post so that it can be linked to?
- WordPress permalink setup in Hindi
- WPML Permalink missing language slug
- How to remove /year/month from uploaded medias?
- Use custom post meta in permalink
- SEO: shortening permalinks to five words
- Remove -2 from URL; no duplicate pages, no images, no pages in trash
- Htaccess https 301 problem
- Add sku to product url woocommerce [closed]
- Press-This stopped redirecting to permalink after post publish
- Giving a new page an existing URL
- When do i need to get permalink structure of a specific post?
- implement separate templates for 1 post type
- encoded search terms with %20
- Permalinks not working on new site
- Adding URL prefix for foreign language support
- Custom links in menus not working in multiple environments
- Remove all stop words from old permalinks
- 404 error on all pages but custom post types are working OK
- using wp_redirect to redirect to a permalink
- old permalinks not found
- WordPress permalink from the database?
- How can I see a list of all pages my WordPress site has generated?
- Can I change the URL structure for a CPT only?
- Display parent page URL for child page
- How to set add_query_arg properly for home page?
- How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
- Double Slash After Media Path (uploads//)
- Make a post inaccessible without a unique ID in the URL
- Undefined variable: testimonial in D:\Projects\PWP-WP\wp-content\themes\blankslate-child\template-parts\fields\flex\bottom-page-block.php on line 123
- Is it possible to set public to false for the native WordPress blog
- Code snippet to add filter pre_post_link to change Media URL (post_type attachment permalink/slug)
- Change permalink structure in all sites of a multisite
- Custom Permalink (with category) for Pages
- Changing permalink stops me from creating webpages
- Make query parameter an endpoint
- WP adding noopener and noreferrer to all links
- 301 redirects after changing permalinks
- Rename Custom Post Slug using taxonomy
- Link works although page was moved to another location
- Added a prefix in URL permalink structure but the old structure still working!
- Permalink of post redirect to uncategorized category
- Getting current page URL when default permalink is set
- WordPress All pages but home simply read “hello”
- create user’s view profile link with username
- The Permalink doesn’t work after the foreach ended
- Force/Limit the post/page slug to accept only url friendly characters
- Make Permalinks have a custom format?
- Can’t access WordPress site in subfolder possibly because of .htaccess redirect from root installation?
- WordPress URL Problems After Change it
- Get permalink of a post without using WordPress functions
- Development before domain name chosen
- Permalink, links a page to the homepage
- Possible to hide parts of the slug from get_template_directory_uri and bloginfo(‘template_directory’)
- Permalink broken for pages after adding rewrite rule
- Editing the variables in a custom URL
- Pretty Permalinks cause site to crash on main domain
- [Plugin leenk.me]modify get_the_title
- get_attachment_link() adds a hashtag to URL
- Are custom page templates being used to get this permalink structure
- get_posts displaying wrong permalink for “continue reading” link
- Permalinks setting
- Make all internal links relative, or otherwise make a website accessible from multiple domains
- How do I get a link to a WP page within a loop?