I have created a custom post type called portfolio so such posts have an url like this:
mydomain.com/portfolio/post-name/
This is fine so far, however i just found I am having a problem with my Wordpress login and i believe this is causing it. I have a login link on every post so if you log in from there it is supposed to redirect you back to the same post page but instead you will get a redirection loop error.
If you look at the URL which Wordpress is trying to redirect to, you will see something like
mydomain.com//post-name/
notice how "portfolio" is missing from the URL and thats causing the redirection error.
How can i address this problem and have the redirection fixed?
Thank you.