Added a test for multisite preview page #438
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change is meant to test the PR #357. The problem is that when you're previewing a page on a multisite using subdirectory (not subdomain), the link is
http://eflowmslocal.local/test1?page_id=7&preview_id=7&preview=true
instead of:
http://eflowmslocal.local/test1/?page_id=7&preview_id=7&preview=true
(it's missing the / between test1 and ?page_id).
The solution from the PR is the right one and I want to wrap this up into a test.
Basically, what I'm trying to do is:
The problem is that the preview link seems to have a broken structure once I create the new blog. This is how the link looks:
http://httpexample.org/sample/?page_id=3&preview=true
The slash appears even though the preview link in the browser is still broken.