Wednesday, 11 September 2013

Mini-pages and image urls

Mini-pages and image urls

I've recently started to use mini-pages for my client-side routing and all
has been going well. However, once my url route gets 2 or more levels deep
the image urls get messed up.
For example if I am at my root location at say, test.com/
The image url correctly is displayed as test.com/image.png
When the url is test.com/test,
the image url correctly is displayed as test.com/image.png
However, when the url is 2 levels deep such as test.com/test/viewall,
the image url is incorrectly displayed as test.com/test/image.png
The last example causes my images not to be displayed on the 2 levels or
deeper pages. How do I address this issue?

No comments:

Post a Comment