WordPress and your server .htaccess controls the url structure of your site.
Not the theme.
Please try resetting your url structure in WordPress admin -> Settings -> Permalinks.
It could also be a cache plugin issue. If you have a cache plugin installed, clear the cache.
If you have a server cache installed, clear the cache.