18
Views
4
Comments
Solved
Same screen is loaded with or without subpath
Application Type
Traditional Web
Service Studio Version
11.54.79 (Build 63629)

Hi,

I am facing an issue, where my application screen gets loaded with or without subpath (module name) in the url.

Ex : https://abc-dev.testdata.com/Home.aspx?IsNew=True and https://abc-dev.testdata.com /TestAppWeb/Home.aspx?IsNew=True (Only the difference here is that the application entry module name in the URL) redirects to the same screen. This seems to be some security concern which need to be considered. How this can be fixed? What am I missing?

UserImage.jpg
Avithesh B

@Junaid Syed @Sazid 

Thank you for your prompt response. After going through the link which you've shared, I have gone through the SEO URL rules set for my application. But I don't find any such configuration done for my application other than one Site Rule, which is as below:

Base URL : abc-dev.testdata.com

Locale : NA

Root application : TestAppWeb

Enabled : True

So my question here,

Q1 : is there any possibility that this configuration removes Root application value from the Url and as a result the URL will be like : https://abc-dev.testdata.com/Home.aspx?IsNew=True instead of https://abc-dev.testdata.com/TestAppWeb/Home.aspx?IsNew=True

Q2 : Is there any chance that the root application value is not excluded from the URL all the time the application is accessed or redirected from one screen to another within the application, when only the above configuration is done under SEO URLs rule setup ?


2024-10-19 11-15-19
Sazid


OutSystems won't remove the root app from the URL by default unless there's a specific rule or logic doing it. If it's being excluded sometimes, it's probably due to a redirect or navigation rule in your app. As for your second question, the root app might not always be excluded depending on how screens are navigated or how internal links/redirects are handled. If you don't find anything in your app logic, try testing in another environment or check with your OutSystems admin to rule out any system-related causes.

2024-10-19 11-15-19
Sazid

Hi @Avithesh B - As suggested by Junaid you might need to update SEO rules if you not using for personal environment. This option is not available for personal environment. Go to service center in SEO tab and turn on the force with Module Name option. you can also redirect to the right URL by Setting up a redirect so that if someone tries to access the URL without the module name, it automatically takes them to the one that includes it. You can add a little check in your screen logic to see if the URL is missing the module name, and then redirect etc.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.